|
||||||||||
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<BytesRef> org.apache.lucene.util.fst.ByteSequenceOutputs
public final class ByteSequenceOutputs
Output is a sequence of bytes, for each input term.
Method Summary | |
---|---|
BytesRef |
add(BytesRef prefix,
BytesRef output)
Eg add("foo", "bar") -> "foobar" |
BytesRef |
common(BytesRef output1,
BytesRef output2)
Eg common("foo", "foobar") -> "foo" |
BytesRef |
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 ByteSequenceOutputs |
getSingleton()
|
String |
outputToString(BytesRef output)
|
BytesRef |
read(DataInput in)
|
BytesRef |
subtract(BytesRef output,
BytesRef inc)
Eg subtract("foobar", "foo") -> "bar" |
void |
write(BytesRef 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 ByteSequenceOutputs getSingleton()
public BytesRef common(BytesRef output1, BytesRef output2)
Outputs
common
in class Outputs<BytesRef>
public BytesRef subtract(BytesRef output, BytesRef inc)
Outputs
subtract
in class Outputs<BytesRef>
public BytesRef add(BytesRef prefix, BytesRef output)
Outputs
add
in class Outputs<BytesRef>
public void write(BytesRef prefix, DataOutput out) throws IOException
write
in class Outputs<BytesRef>
IOException
public BytesRef read(DataInput in) throws IOException
read
in class Outputs<BytesRef>
IOException
public BytesRef getNoOutput()
Outputs
getNoOutput
in class Outputs<BytesRef>
public String outputToString(BytesRef output)
outputToString
in class Outputs<BytesRef>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |