| Modifier and Type | Method and 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 output
|
static PositiveIntOutputs |
getSingleton()
Returns the instance of PositiveIntOutputs.
|
static PositiveIntOutputs |
getSingleton(boolean doShare)
Expert: pass doShare=false to disable output sharing.
|
String |
outputToString(Long output) |
Long |
read(DataInput in)
Decode an output value previously written with
Outputs.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 a
DataOutput. |
merge, readFinalOutput, writeFinalOutputpublic static PositiveIntOutputs getSingleton()
public static PositiveIntOutputs getSingleton(boolean doShare)
Util.getByOutput(org.apache.lucene.util.fst.FST<java.lang.Long>, long) and Util.shortestPaths(org.apache.lucene.util.fst.FST<T>, org.apache.lucene.util.fst.FST.Arc<T>, T, java.util.Comparator<T>, int, boolean).public Long common(Long output1, Long output2)
Outputspublic Long subtract(Long output, Long inc)
Outputspublic Long add(Long prefix, Long output)
Outputspublic void write(Long output, DataOutput out) throws IOException
OutputsDataOutput.write in class Outputs<Long>IOExceptionpublic Long read(DataInput in) throws IOException
OutputsOutputs.write(Object, DataOutput).read in class Outputs<Long>IOExceptionpublic Long getNoOutput()
OutputsgetNoOutput in class Outputs<Long>public String outputToString(Long output)
outputToString in class Outputs<Long>Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.