예제 #1
0
파일: ID2Entry.java 프로젝트: jiaoyk/OpenDJ
 @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();
   }
 }
 @Override
 public boolean next() {
   clearCache();
   return input.next();
 }