@Test public void addRecords() throws StorageException { for (int r = 0; r < numRows; r++) { int numCols = 10; List<Entry> entries = new ArrayList<Entry>(); for (int c = 0; c < numCols; c++) { entries.add( new StaticBufferEntry( KeyValueStoreUtil.getBuffer(c + 1), KeyValueStoreUtil.getBuffer(c + r + 2))); } store.mutate( KeyValueStoreUtil.getBuffer(r + 1), entries, KeyColumnValueStore.NO_DELETIONS, tx); } tx.commit(); tx = null; }
public void close() throws StorageException { if (tx != null) tx.commit(); store.close(); manager.close(); }