Ejemplo n.º 1
0
 @Override
 void open0(WriteableTransaction txn) throws StorageRuntimeException {
   // Make sure the tree is there and readable, even if the storage is READ_ONLY.
   // Would be nice if there were a better way...
   try (final Cursor<ByteString, ByteString> cursor = txn.openCursor(getName())) {
     cursor.next();
   }
 }
Ejemplo n.º 2
0
 @Override
 public boolean next() {
   clearCache();
   return input.next();
 }