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