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