Package org.apache.lucene.util.fst
Class NoOutputs
A null FST
Outputs
implementation; use this if
you just want to build an FSA.-
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 NoOutputs
outputToString
(Object output) Decode an output value previously written withOutputs.write(Object, DataOutput)
.Eg subtract("foobar", "foo") -> "bar"void
write
(Object prefix, DataOutput out) Encode an output value into aDataOutput
.Methods inherited from class org.apache.lucene.util.fst.Outputs
readFinalOutput, writeFinalOutput
-
Method Details
-
getSingleton
-
common
Description copied from class:Outputs
Eg common("foobar", "food") -> "foo" -
subtract
Description copied from class:Outputs
Eg subtract("foobar", "foo") -> "bar" -
add
Description copied from class:Outputs
Eg add("foo", "bar") -> "foobar" -
merge
-
write
Description copied from class:Outputs
Encode an output value into aDataOutput
. -
read
Description copied from class:Outputs
Decode an output value previously written withOutputs.write(Object, DataOutput)
. -
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<Object>
-
outputToString
- Specified by:
outputToString
in classOutputs<Object>
-