public class SparseLongRowUpdate extends SparseLongColumnMap implements LongRowUpdate
LongRowUpdate assumes a sparse set of
columns, ie. column IDs can be any int value. In general, this class is less
CPU and memory efficient than DenseLongRowUpdate.| Constructor and Description |
|---|
SparseLongRowUpdate()
Construct a new object, this object initially contains no columns (ie.
|
SparseLongRowUpdate(java.nio.ByteBuffer buffer)
Construct an object by de-serializing from a
ByteBuffer object. |
SparseLongRowUpdate(SparseLongRowUpdate other)
Copy constructor, constructs a new, deep copy of the argument.
|
| Modifier and Type | Method and Description |
|---|---|
SparseLongRowUpdate |
getCopy()
Returns a deep copy of this row update.
|
void |
inc(RowUpdate rowUpdate)
Increment this row update using a
RowUpdate object. |
clear, contains, get, inc, iterator, map, serialize, set, sizeincAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SparseLongRowUpdate()
public SparseLongRowUpdate(SparseLongRowUpdate other)
other - object to construct a deep copy of.public SparseLongRowUpdate(java.nio.ByteBuffer buffer)
ByteBuffer object.buffer - the ByteBuffer containing the serialized data.public SparseLongRowUpdate getCopy()