|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.fst.Outputs<IntsRef> org.apache.lucene.util.fst.IntSequenceOutputs
public final class IntSequenceOutputs
An FST Outputs
implementation where each output
is a sequence of ints.
Method Summary | |
---|---|
IntsRef |
add(IntsRef prefix,
IntsRef output)
Eg add("foo", "bar") -> "foobar" |
IntsRef |
common(IntsRef output1,
IntsRef output2)
Eg common("foo", "foobar") -> "foo" |
IntsRef |
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 IntSequenceOutputs |
getSingleton()
|
String |
outputToString(IntsRef output)
|
IntsRef |
read(DataInput in)
|
IntsRef |
subtract(IntsRef output,
IntsRef inc)
Eg subtract("foobar", "foo") -> "bar" |
void |
write(IntsRef prefix,
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, toString, wait, wait, wait |
Method Detail |
---|
public static IntSequenceOutputs getSingleton()
public IntsRef common(IntsRef output1, IntsRef output2)
Outputs
common
in class Outputs<IntsRef>
public IntsRef subtract(IntsRef output, IntsRef inc)
Outputs
subtract
in class Outputs<IntsRef>
public IntsRef add(IntsRef prefix, IntsRef output)
Outputs
add
in class Outputs<IntsRef>
public void write(IntsRef prefix, DataOutput out) throws IOException
write
in class Outputs<IntsRef>
IOException
public IntsRef read(DataInput in) throws IOException
read
in class Outputs<IntsRef>
IOException
public IntsRef getNoOutput()
Outputs
getNoOutput
in class Outputs<IntsRef>
public String outputToString(IntsRef output)
outputToString
in class Outputs<IntsRef>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |