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