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 BytesRefstatic 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) longramBytesUsed(FSTOrdsOutputs.Output output) Return memory usage for the provided output.Decode an output value previously written withOutputs.write(Object, DataOutput).voidSkip 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.voidskipOutput(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"voidwrite(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:OutputsEg common("foobar", "food") -> "foo"- Specified by:
commonin classOutputs<FSTOrdsOutputs.Output>
-
subtract
Description copied from class:OutputsEg subtract("foobar", "foo") -> "bar"- Specified by:
subtractin classOutputs<FSTOrdsOutputs.Output>
-
add
Description copied from class:OutputsEg add("foo", "bar") -> "foobar"- Specified by:
addin classOutputs<FSTOrdsOutputs.Output>
-
write
Description copied from class:OutputsEncode an output value into aDataOutput.- Specified by:
writein classOutputs<FSTOrdsOutputs.Output>- Throws:
IOException
-
read
Description copied from class:OutputsDecode an output value previously written withOutputs.write(Object, DataOutput).- Specified by:
readin classOutputs<FSTOrdsOutputs.Output>- Throws:
IOException
-
skipOutput
Description copied from class:OutputsSkip the output; defaults to just callingOutputs.read(org.apache.lucene.store.DataInput)and discarding the result.- Overrides:
skipOutputin classOutputs<FSTOrdsOutputs.Output>- Throws:
IOException
-
skipFinalOutput
Description copied from class:OutputsSkip 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:
skipFinalOutputin classOutputs<FSTOrdsOutputs.Output>- Throws:
IOException
-
getNoOutput
Description copied from class:OutputsNOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output- Specified by:
getNoOutputin classOutputs<FSTOrdsOutputs.Output>
-
outputToString
- Specified by:
outputToStringin classOutputs<FSTOrdsOutputs.Output>
-
newOutput
-
ramBytesUsed
Description copied from class:OutputsReturn memory usage for the provided output.- Specified by:
ramBytesUsedin classOutputs<FSTOrdsOutputs.Output>- See Also:
-