Package org.apache.lucene.util.fst
Class NoOutputs
- java.lang.Object
-
- org.apache.lucene.util.fst.Outputs<Object>
-
- org.apache.lucene.util.fst.NoOutputs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
add(Object prefix, Object output)
Eg add("foo", "bar") -> "foobar"Object
common(Object output1, Object output2)
Eg common("foobar", "food") -> "foo"Object
getNoOutput()
NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no outputstatic NoOutputs
getSingleton()
Object
merge(Object first, Object second)
String
outputToString(Object output)
Object
read(DataInput in)
Decode an output value previously written withOutputs.write(Object, DataOutput)
.Object
subtract(Object output, Object inc)
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 Detail
-
getSingleton
public static NoOutputs getSingleton()
-
common
public Object common(Object output1, Object output2)
Description copied from class:Outputs
Eg common("foobar", "food") -> "foo"
-
subtract
public Object subtract(Object output, Object inc)
Description copied from class:Outputs
Eg subtract("foobar", "foo") -> "bar"
-
add
public Object add(Object prefix, Object output)
Description copied from class:Outputs
Eg add("foo", "bar") -> "foobar"
-
write
public void write(Object prefix, DataOutput out)
Description copied from class:Outputs
Encode an output value into aDataOutput
.
-
read
public Object read(DataInput in)
Description copied from class:Outputs
Decode an output value previously written withOutputs.write(Object, DataOutput)
.
-
getNoOutput
public Object 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
public String outputToString(Object output)
- Specified by:
outputToString
in classOutputs<Object>
-
-