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