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