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("foo", "foobar") -> "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(boolean doShare)
String
outputToString(Long output)
Long
read(DataInput in)
Long
subtract(Long output, Long inc)
Eg subtract("foobar", "foo") -> "bar"String
toString()
void
write(Long output, DataOutput out)
-
-
-
Method Detail
-
getSingleton
public static PositiveIntOutputs getSingleton(boolean doShare)
-
common
public Long common(Long output1, Long output2)
Description copied from class:Outputs
Eg common("foo", "foobar") -> "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
- Specified by:
write
in classOutputs<Long>
- Throws:
IOException
-
read
public Long read(DataInput in) throws IOException
- 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>
-
-