| Modifier and Type | Method and Description |
|---|---|
Object |
add(Object prefix,
Object output)
Eg add("foo", "bar") -> "foobar"
|
Object |
common(Object output1,
Object output2)
Eg common("foobar", "food") -> "foo"
|
Object |
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 NoOutputs |
getSingleton() |
Object |
merge(Object first,
Object second) |
String |
outputToString(Object output) |
long |
ramBytesUsed(Object output)
Return memory usage for the provided output.
|
Object |
read(DataInput in)
Decode an output value previously written with
Outputs.write(Object, DataOutput). |
Object |
subtract(Object output,
Object inc)
Eg subtract("foobar", "foo") -> "bar"
|
String |
toString() |
void |
write(Object prefix,
DataOutput out)
Encode an output value into a
DataOutput. |
readFinalOutput, skipFinalOutput, skipOutput, writeFinalOutputpublic static NoOutputs getSingleton()
public Object common(Object output1, Object output2)
Outputspublic Object subtract(Object output, Object inc)
Outputspublic Object add(Object prefix, Object output)
Outputspublic void write(Object prefix, DataOutput out)
OutputsDataOutput.public Object read(DataInput in)
OutputsOutputs.write(Object, DataOutput).public Object getNoOutput()
OutputsgetNoOutput in class Outputs<Object>public String outputToString(Object output)
outputToString in class Outputs<Object>public long ramBytesUsed(Object output)
OutputsramBytesUsed in class Outputs<Object>AccountableCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.