|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.util.fst.Outputs<Long>
org.apache.lucene.util.fst.PositiveIntOutputs
public final class PositiveIntOutputs
An FST Outputs implementation where each output
is a non-negative long value.
| Method Summary | |
|---|---|
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)
|
Long |
subtract(Long output,
Long inc)
Eg subtract("foobar", "foo") -> "bar" |
String |
toString()
|
void |
write(Long output,
DataOutput out)
|
| Methods inherited from class org.apache.lucene.util.fst.Outputs |
|---|
merge |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static PositiveIntOutputs getSingleton()
public static PositiveIntOutputs getSingleton(boolean doShare)
Util.getByOutput(org.apache.lucene.util.fst.FST, long) and Util.shortestPaths(org.apache.lucene.util.fst.FST, org.apache.lucene.util.fst.FST.Arc, java.util.Comparator, int) .
public Long common(Long output1,
Long output2)
Outputs
common in class Outputs<Long>
public Long subtract(Long output,
Long inc)
Outputs
subtract in class Outputs<Long>
public Long add(Long prefix,
Long output)
Outputs
add in class Outputs<Long>
public void write(Long output,
DataOutput out)
throws IOException
write in class Outputs<Long>IOException
public Long read(DataInput in)
throws IOException
read in class Outputs<Long>IOExceptionpublic Long getNoOutput()
Outputs
getNoOutput in class Outputs<Long>public String outputToString(Long output)
outputToString in class Outputs<Long>public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||