Modifier and Type | Method and Description |
---|---|
CharsRef |
add(CharsRef prefix,
CharsRef output)
Eg add("foo", "bar") -> "foobar"
|
CharsRef |
common(CharsRef output1,
CharsRef output2)
Eg common("foobar", "food") -> "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) |
long |
ramBytesUsed(CharsRef output)
Return memory usage for the provided output.
|
CharsRef |
read(DataInput in)
Decode an output value previously written with
Outputs.write(Object, DataOutput) . |
void |
skipOutput(DataInput in)
Skip the output; defaults to just calling
Outputs.read(org.apache.lucene.store.DataInput)
and discarding the result. |
CharsRef |
subtract(CharsRef output,
CharsRef inc)
Eg subtract("foobar", "foo") -> "bar"
|
void |
write(CharsRef prefix,
DataOutput out)
Encode an output value into a
DataOutput . |
merge, readFinalOutput, skipFinalOutput, writeFinalOutput
public static CharSequenceOutputs getSingleton()
public CharsRef common(CharsRef output1, CharsRef output2)
Outputs
public CharsRef subtract(CharsRef output, CharsRef inc)
Outputs
public CharsRef add(CharsRef prefix, CharsRef output)
Outputs
public void write(CharsRef prefix, DataOutput out) throws IOException
Outputs
DataOutput
.write
in class Outputs<CharsRef>
IOException
public CharsRef read(DataInput in) throws IOException
Outputs
Outputs.write(Object, DataOutput)
.read
in class Outputs<CharsRef>
IOException
public void skipOutput(DataInput in) throws IOException
Outputs
Outputs.read(org.apache.lucene.store.DataInput)
and discarding the result.skipOutput
in class Outputs<CharsRef>
IOException
public CharsRef getNoOutput()
Outputs
getNoOutput
in class Outputs<CharsRef>
public String outputToString(CharsRef output)
outputToString
in class Outputs<CharsRef>
public long ramBytesUsed(CharsRef output)
Outputs
ramBytesUsed
in class Outputs<CharsRef>
Accountable
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.