Package org.apache.lucene.util.fst
Class NoOutputs
- java.lang.Object
-
- org.apache.lucene.util.fst.Outputs<java.lang.Object>
-
- org.apache.lucene.util.fst.NoOutputs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
add(java.lang.Object prefix, java.lang.Object output)
Eg add("foo", "bar") -> "foobar"java.lang.Object
common(java.lang.Object output1, java.lang.Object output2)
Eg common("foobar", "food") -> "foo"java.lang.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()
java.lang.Object
merge(java.lang.Object first, java.lang.Object second)
java.lang.String
outputToString(java.lang.Object output)
java.lang.Object
read(DataInput in)
Decode an output value previously written withOutputs.write(Object, DataOutput)
.java.lang.Object
subtract(java.lang.Object output, java.lang.Object inc)
Eg subtract("foobar", "foo") -> "bar"void
write(java.lang.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 java.lang.Object common(java.lang.Object output1, java.lang.Object output2)
Description copied from class:Outputs
Eg common("foobar", "food") -> "foo"
-
subtract
public java.lang.Object subtract(java.lang.Object output, java.lang.Object inc)
Description copied from class:Outputs
Eg subtract("foobar", "foo") -> "bar"
-
add
public java.lang.Object add(java.lang.Object prefix, java.lang.Object output)
Description copied from class:Outputs
Eg add("foo", "bar") -> "foobar"
-
merge
public java.lang.Object merge(java.lang.Object first, java.lang.Object second)
-
write
public void write(java.lang.Object prefix, DataOutput out)
Description copied from class:Outputs
Encode an output value into aDataOutput
.
-
read
public java.lang.Object read(DataInput in)
Description copied from class:Outputs
Decode an output value previously written withOutputs.write(Object, DataOutput)
.
-
getNoOutput
public java.lang.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<java.lang.Object>
-
outputToString
public java.lang.String outputToString(java.lang.Object output)
- Specified by:
outputToString
in classOutputs<java.lang.Object>
-
-