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()
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 IOException
Description copied from class:Outputs
Encode an output value into aDataOutput
.- Specified by:
write
in classOutputs<IntsRef>
- Throws:
IOException
-
read
public IntsRef read(DataInput in) throws IOException
Description copied from class:Outputs
Decode an output value previously written withOutputs.write(Object, DataOutput)
.- Specified by:
read
in classOutputs<IntsRef>
- Throws:
IOException
-
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 String outputToString(IntsRef output)
- Specified by:
outputToString
in classOutputs<IntsRef>
-
-