Package org.apache.lucene.util.fst
Class CharSequenceOutputs
- java.lang.Object
-
- org.apache.lucene.util.fst.Outputs<CharsRef>
-
- org.apache.lucene.util.fst.CharSequenceOutputs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CharsRefadd(CharsRef prefix, CharsRef output)Eg add("foo", "bar") -> "foobar"CharsRefcommon(CharsRef output1, CharsRef output2)Eg common("foobar", "food") -> "foo"CharsRefgetNoOutput()NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no outputstatic CharSequenceOutputsgetSingleton()java.lang.StringoutputToString(CharsRef output)CharsRefread(DataInput in)Decode an output value previously written withOutputs.write(Object, DataOutput).CharsRefsubtract(CharsRef output, CharsRef inc)Eg subtract("foobar", "foo") -> "bar"voidwrite(CharsRef 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 CharSequenceOutputs getSingleton()
-
common
public CharsRef common(CharsRef output1, CharsRef output2)
Description copied from class:OutputsEg common("foobar", "food") -> "foo"
-
subtract
public CharsRef subtract(CharsRef output, CharsRef inc)
Description copied from class:OutputsEg subtract("foobar", "foo") -> "bar"
-
add
public CharsRef add(CharsRef prefix, CharsRef output)
Description copied from class:OutputsEg add("foo", "bar") -> "foobar"
-
write
public void write(CharsRef prefix, DataOutput out) throws java.io.IOException
Description copied from class:OutputsEncode an output value into aDataOutput.
-
read
public CharsRef read(DataInput in) throws java.io.IOException
Description copied from class:OutputsDecode an output value previously written withOutputs.write(Object, DataOutput).
-
getNoOutput
public CharsRef getNoOutput()
Description copied from class:OutputsNOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output- Specified by:
getNoOutputin classOutputs<CharsRef>
-
outputToString
public java.lang.String outputToString(CharsRef output)
- Specified by:
outputToStringin classOutputs<CharsRef>
-
-