java.lang.Object
org.apache.lucene.util.fst.Outputs<FSTOrdsOutputs.Output>
org.apache.lucene.codecs.blocktreeords.FSTOrdsOutputs
A custom FST outputs implementation that stores block data (BytesRef), long ordStart, long
numTerms.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BytesRef
static final FSTOrdsOutputs.Output
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(FSTOrdsOutputs.Output prefix, FSTOrdsOutputs.Output output) Eg add("foo", "bar") -> "foobar"common
(FSTOrdsOutputs.Output output1, FSTOrdsOutputs.Output output2) Eg common("foobar", "food") -> "foo"NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no outputoutputToString
(FSTOrdsOutputs.Output output) long
ramBytesUsed
(FSTOrdsOutputs.Output output) Return memory usage for the provided output.Decode an output value previously written withOutputs.write(Object, DataOutput)
.void
Skip the output previously written withOutputs.writeFinalOutput(T, org.apache.lucene.store.DataOutput)
; defaults to just callingOutputs.readFinalOutput(org.apache.lucene.store.DataInput)
and discarding the result.void
skipOutput
(DataInput in) Skip the output; defaults to just callingOutputs.read(org.apache.lucene.store.DataInput)
and discarding the result.subtract
(FSTOrdsOutputs.Output output, FSTOrdsOutputs.Output inc) Eg subtract("foobar", "foo") -> "bar"void
write
(FSTOrdsOutputs.Output prefix, DataOutput out) Encode an output value into aDataOutput
.Methods inherited from class org.apache.lucene.util.fst.Outputs
merge, readFinalOutput, writeFinalOutput
-
Field Details
-
NO_OUTPUT
-
NO_BYTES
-
-
Constructor Details
-
FSTOrdsOutputs
FSTOrdsOutputs()
-
-
Method Details
-
common
Description copied from class:Outputs
Eg common("foobar", "food") -> "foo"- Specified by:
common
in classOutputs<FSTOrdsOutputs.Output>
-
subtract
Description copied from class:Outputs
Eg subtract("foobar", "foo") -> "bar"- Specified by:
subtract
in classOutputs<FSTOrdsOutputs.Output>
-
add
Description copied from class:Outputs
Eg add("foo", "bar") -> "foobar"- Specified by:
add
in classOutputs<FSTOrdsOutputs.Output>
-
write
Description copied from class:Outputs
Encode an output value into aDataOutput
.- Specified by:
write
in classOutputs<FSTOrdsOutputs.Output>
- Throws:
IOException
-
read
Description copied from class:Outputs
Decode an output value previously written withOutputs.write(Object, DataOutput)
.- Specified by:
read
in classOutputs<FSTOrdsOutputs.Output>
- Throws:
IOException
-
skipOutput
Description copied from class:Outputs
Skip the output; defaults to just callingOutputs.read(org.apache.lucene.store.DataInput)
and discarding the result.- Overrides:
skipOutput
in classOutputs<FSTOrdsOutputs.Output>
- Throws:
IOException
-
skipFinalOutput
Description copied from class:Outputs
Skip the output previously written withOutputs.writeFinalOutput(T, org.apache.lucene.store.DataOutput)
; defaults to just callingOutputs.readFinalOutput(org.apache.lucene.store.DataInput)
and discarding the result.- Overrides:
skipFinalOutput
in classOutputs<FSTOrdsOutputs.Output>
- Throws:
IOException
-
getNoOutput
Description copied from class:Outputs
NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output- Specified by:
getNoOutput
in classOutputs<FSTOrdsOutputs.Output>
-
outputToString
- Specified by:
outputToString
in classOutputs<FSTOrdsOutputs.Output>
-
newOutput
-
ramBytesUsed
Description copied from class:Outputs
Return memory usage for the provided output.- Specified by:
ramBytesUsed
in classOutputs<FSTOrdsOutputs.Output>
- See Also:
-