Package org.apache.lucene.util.fst
Class ByteSequenceOutputs
An FST
Outputs implementation where each output
is a sequence of bytes.-
Method Summary
Modifier and TypeMethodDescriptionEg add("foo", "bar") -> "foobar"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 outputstatic ByteSequenceOutputsoutputToString(BytesRef output) Decode an output value previously written withOutputs.write(Object, DataOutput).Eg subtract("foobar", "foo") -> "bar"voidwrite(BytesRef prefix, DataOutput out) Encode an output value into aDataOutput.Methods inherited from class org.apache.lucene.util.fst.Outputs
merge, readFinalOutput, writeFinalOutput
-
Method Details
-
getSingleton
-
common
Description copied from class:OutputsEg common("foobar", "food") -> "foo" -
subtract
Description copied from class:OutputsEg subtract("foobar", "foo") -> "bar" -
add
Description copied from class:OutputsEg add("foo", "bar") -> "foobar" -
write
Description copied from class:OutputsEncode an output value into aDataOutput.- Specified by:
writein classOutputs<BytesRef>- Throws:
IOException
-
read
Description copied from class:OutputsDecode an output value previously written withOutputs.write(Object, DataOutput).- Specified by:
readin classOutputs<BytesRef>- 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<BytesRef>
-
outputToString
- Specified by:
outputToStringin classOutputs<BytesRef>
-