| Modifier and Type | Method and Description |
|---|---|
BytesRef |
add(BytesRef prefix,
BytesRef output)
Eg add("foo", "bar") -> "foobar"
|
BytesRef |
common(BytesRef output1,
BytesRef output2)
Eg common("foobar", "food") -> "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() |
java.lang.String |
outputToString(BytesRef output) |
BytesRef |
read(DataInput in)
Decode an output value previously written with
Outputs.write(Object, DataOutput). |
BytesRef |
subtract(BytesRef output,
BytesRef inc)
Eg subtract("foobar", "foo") -> "bar"
|
void |
write(BytesRef prefix,
DataOutput out)
Encode an output value into a
DataOutput. |
merge, readFinalOutput, writeFinalOutputpublic static ByteSequenceOutputs getSingleton()
public BytesRef common(BytesRef output1, BytesRef output2)
Outputspublic BytesRef subtract(BytesRef output, BytesRef inc)
Outputspublic BytesRef add(BytesRef prefix, BytesRef output)
Outputspublic void write(BytesRef prefix, DataOutput out) throws java.io.IOException
OutputsDataOutput.public BytesRef read(DataInput in) throws java.io.IOException
OutputsOutputs.write(Object, DataOutput).public BytesRef getNoOutput()
OutputsgetNoOutput in class Outputs<BytesRef>public java.lang.String outputToString(BytesRef output)
outputToString in class Outputs<BytesRef>Copyright © 2010 - 2024 Adobe. All Rights Reserved