Example #1
0
 private KeyColumnValueStore getBufferStore(String name) throws StorageException {
   Preconditions.checkArgument(
       bufferSize <= 1 || storeManager.getFeatures().supportsBatchMutation());
   KeyColumnValueStore store = null;
   store = storeManager.openDatabase(name);
   if (bufferSize > 1) {
     store = new BufferedKeyColumnValueStore(store, true);
   }
   // Enable cache
   store = new CachedKeyColumnValueStore(store);
   return store;
 }
 public void open() throws StorageException {
   manager = openStorageManager();
   store = manager.openDatabase(storeName);
   tx = startTx();
 }
Example #3
0
 private KeyColumnValueStore getStore(String name) throws StorageException {
   KeyColumnValueStore store = storeManager.openDatabase(name);
   return store;
 }