public class MemorySparseMatrixState<T> extends TransactionalMemoryMapState<Map<Long,T>> implements SparseMatrixState<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemorySparseMatrixState.Factory<T> |
static class |
MemorySparseMatrixState.MemorySparseVector<T> |
TransactionalMemoryMapState.MemoryMapStateBacking<T>SparseMatrixState.SparseVector<T>| Constructor and Description |
|---|
MemorySparseMatrixState(String id) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(long i,
long j)
Gets a specific value inside the matrix.
|
SparseMatrixState.SparseVector<T> |
getColumn(long i)
Gets a specific column as a
SparseMatrixState.SparseVector. |
SparseMatrixState.SparseVector<T> |
getRow(long j)
Gets a specific row as a
SparseMatrixState.SparseVector. |
void |
set(long i,
long j,
T value)
Sets a specific value inside the matrix.
|
beginCommit, commit, get, getTuples, multiGet, multiPut, multiUpdate, set, updatepublic MemorySparseMatrixState(String id)
public T get(long i, long j)
SparseMatrixStateget in interface SparseMatrixState<T>i - row indexj - column indexnull if no value was foundpublic void set(long i,
long j,
T value)
SparseMatrixStateset in interface SparseMatrixState<T>i - row indexj - column indexvalue - the new valuepublic SparseMatrixState.SparseVector<T> getColumn(long i)
SparseMatrixStateSparseMatrixState.SparseVector.getColumn in interface SparseMatrixState<T>i - column indexpublic SparseMatrixState.SparseVector<T> getRow(long j)
SparseMatrixStateSparseMatrixState.SparseVector.getRow in interface SparseMatrixState<T>j - row indexCopyright © 2013. All rights reserved.