public void loadLowerTriangularValues(int dimension, int offset) throws StorageException {
Preconditions.checkArgument(0 < dimension);
ByteBuffer val = ByteBuffer.allocate(1);
val.put((byte) -1);
StaticBuffer staticVal = new StaticByteBuffer(val);
List<Entry> rowAdditions = new ArrayList<Entry>(dimension);
for (int k = 0; k < dimension; k++) {
rowAdditions.clear();
ByteBuffer key = ByteBuffer.allocate(8);
key.putInt(0);
key.putInt(k + offset);
key.flip();
StaticBuffer staticKey = new StaticByteBuffer(key);
for (int c = 0; c <= k; c++) {
ByteBuffer col = ByteBuffer.allocate(4);
col.putInt(c + offset);
col.flip();
StaticBuffer staticCol = new StaticByteBuffer(col);
rowAdditions.add(new StaticBufferEntry(staticCol, staticVal));
}
store.mutate(staticKey, rowAdditions, Collections.<StaticBuffer>emptyList(), tx);
}