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("foo", "foobar") -> "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()
String
outputToString(Object output)
Object
read(DataInput in)
Object
subtract(Object output, Object inc)
Eg subtract("foobar", "foo") -> "bar"void
write(Object prefix, DataOutput out)
-
-
-
Method Detail
-
getSingleton
public static NoOutputs getSingleton()
-
common
public Object common(Object output1, Object output2)
Description copied from class:Outputs
Eg common("foo", "foobar") -> "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)
-
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>
-
-