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"
|
String |
toString() |
void |
write(IntsRef prefix,
DataOutput out)
Encode an output value into a
DataOutput . |
merge, readFinalOutput, skipFinalOutput, writeFinalOutput
public static IntSequenceOutputs getSingleton()
public IntsRef common(IntsRef output1, IntsRef output2)
Outputs
public IntsRef subtract(IntsRef output, IntsRef inc)
Outputs
public IntsRef add(IntsRef prefix, IntsRef output)
Outputs
public void write(IntsRef prefix, DataOutput out) throws IOException
Outputs
DataOutput
.write
in class Outputs<IntsRef>
IOException
public IntsRef read(DataInput in) throws IOException
Outputs
Outputs.write(Object, DataOutput)
.read
in class Outputs<IntsRef>
IOException
public void skipOutput(DataInput in) throws IOException
Outputs
Outputs.read(org.apache.lucene.store.DataInput)
and discarding the result.skipOutput
in class Outputs<IntsRef>
IOException
public IntsRef getNoOutput()
Outputs
getNoOutput
in class Outputs<IntsRef>
public String outputToString(IntsRef output)
outputToString
in class Outputs<IntsRef>
public long ramBytesUsed(IntsRef output)
Outputs
ramBytesUsed
in class Outputs<IntsRef>
Accountable
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.