public class SparseIntRow extends SparseIntColumnMap implements IntRow
IntRow 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 DenseIntRow.| Constructor and Description |
|---|
SparseIntRow()
Construct a new object, this object initially contains no columns (ie.
|
SparseIntRow(java.nio.ByteBuffer buffer)
Construct an object by de-serializing from a
ByteBuffer object. |
SparseIntRow(SparseIntRow other)
Copy constructor, constructs a new, deep copy of the argument.
|
| Modifier and Type | Method and Description |
|---|---|
SparseIntRow |
getCopy()
Returns a deep copy of this row.
|
void |
inc(RowUpdate rowUpdate)
Increment this row using a
RowUpdate object. |
clear, contains, get, inc, iterator, map, serialize, set, sizeincAllpublic SparseIntRow()
public SparseIntRow(SparseIntRow other)
other - object to construct a deep copy of.public SparseIntRow(java.nio.ByteBuffer buffer)
ByteBuffer object.buffer - the ByteBuffer containing the serialized data.public SparseIntRow getCopy()