| Modifier and Type | Method and Description |
|---|---|
IntsRef |
add(IntsRef prefix,
IntsRef output)
Eg add("foo", "bar") -> "foobar"
|
IntsRef |
common(IntsRef output1,
IntsRef output2)
Eg common("foobar", "food") -> "foo"
|
IntsRef |
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 IntSequenceOutputs |
getSingleton() |
String |
outputToString(IntsRef output) |
long |
ramBytesUsed(IntsRef output)
Return memory usage for the provided output.
|
IntsRef |
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. |
IntsRef |
subtract(IntsRef output,
IntsRef inc)
Eg subtract("foobar", "foo") -> "bar"
|
void |
write(IntsRef prefix,
DataOutput out)
Encode an output value into a
DataOutput. |
merge, readFinalOutput, skipFinalOutput, writeFinalOutputpublic static IntSequenceOutputs getSingleton()
public IntsRef common(IntsRef output1, IntsRef output2)
Outputspublic IntsRef subtract(IntsRef output, IntsRef inc)
Outputspublic IntsRef add(IntsRef prefix, IntsRef output)
Outputspublic void write(IntsRef prefix, DataOutput out) throws IOException
OutputsDataOutput.write in class Outputs<IntsRef>IOExceptionpublic IntsRef read(DataInput in) throws IOException
OutputsOutputs.write(Object, DataOutput).read in class Outputs<IntsRef>IOExceptionpublic void skipOutput(DataInput in) throws IOException
OutputsOutputs.read(org.apache.lucene.store.DataInput)
and discarding the result.skipOutput in class Outputs<IntsRef>IOExceptionpublic IntsRef getNoOutput()
OutputsgetNoOutput in class Outputs<IntsRef>public String outputToString(IntsRef output)
outputToString in class Outputs<IntsRef>public long ramBytesUsed(IntsRef output)
OutputsramBytesUsed in class Outputs<IntsRef>AccountableCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.