public final class FloatTable
extends java.lang.Object
PsTableGroup.createDenseFloatTable(int, int, int) or
PsTableGroup.createSparseFloatTable(int, int), and be retrieved
with PsTableGroup.getFloatTable(int).| Constructor and Description |
|---|
FloatTable(ClientTable clientTable)
Internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
<RowType extends FloatRow> |
get(int rowId)
Retrieve a row from this table.
|
float |
get(int rowId,
int columnId)
Retrieve a single column from a row in this table.
|
void |
inc(int rowId,
FloatRowUpdate rowUpdate)
Apply a batch update to an entire row.
|
void |
inc(int rowId,
int columnId,
float update)
Add a single value to a given row and column.
|
public FloatTable(ClientTable clientTable)
clientTable - internal use only.public <RowType extends FloatRow> RowType get(int rowId)
RowType - type of the row to cast to before returning.rowId - ID of the row to retrieve.Table.get(int)public float get(int rowId,
int columnId)
rowId - row ID of the value to retrieve.columnId - column ID of the value to retrieve.public void inc(int rowId,
FloatRowUpdate rowUpdate)
rowId - ID of the row to update.rowUpdate - update object to apply.Table.inc(int, RowUpdate)public void inc(int rowId,
int columnId,
float update)
rowId - row ID of the value to increment.columnId - column ID of the value to increment.update - value to increment by.