public class SparseFloatRow extends SparseFloatColumnMap implements FloatRow
FloatRow 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 DenseFloatRow.| Constructor and Description |
|---|
SparseFloatRow()
Construct a new object, this object initially contains no columns (ie.
|
SparseFloatRow(java.nio.ByteBuffer buffer)
Construct an object by de-serializing from a
ByteBuffer object. |
SparseFloatRow(SparseFloatRow other)
Copy constructor, constructs a new, deep copy of the argument.
|
| Modifier and Type | Method and Description |
|---|---|
SparseFloatRow |
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, sizeincAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SparseFloatRow()
public SparseFloatRow(SparseFloatRow other)
other - object to construct a deep copy of.public SparseFloatRow(java.nio.ByteBuffer buffer)
ByteBuffer object.buffer - the ByteBuffer containing the serialized data.public SparseFloatRow getCopy()