public class IntTable
extends java.lang.Object
PsTableGroup.createDenseIntTable(int, int, int) or
PsTableGroup.createSparseIntTable(int, int), and be retrieved
with PsTableGroup.getIntTable(int).| Constructor and Description |
|---|
IntTable(ClientTable clientTable)
Internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
<RowType extends IntRow> |
get(int rowId)
Retrieve a row from this table.
|
int |
get(int rowId,
int columnId)
Retrieve a single column from a row in this table.
|
void |
inc(int rowId,
int columnId,
int update)
Add a single value to a given row and column.
|
void |
inc(int rowId,
IntRowUpdate rowUpdate)
Apply a batch update to an entire row.
|
public IntTable(ClientTable clientTable)
clientTable - internal use only.public <RowType extends IntRow> 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 int 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,
IntRowUpdate rowUpdate)
rowId - ID of the row to update.rowUpdate - update object to apply.Table.inc(int, RowUpdate)public void inc(int rowId,
int columnId,
int update)
rowId - row ID of the value to increment.columnId - column ID of the value to increment.update - value to increment by.