/** * {@inheritDoc} */ @Override public boolean hasGreaterOrEqual( PartitionTxn transaction, K key ) throws LdapException { TupleCursor<K, V> cursor = null; try { cursor = bt.browseFrom( key ); return cursor.hasNext(); } catch ( IOException ioe ) { throw new LdapOtherException( ioe.getMessage() ); } finally { if ( cursor != null ) { cursor.close(); } } }
/** * Sets the position before a given key * @param key The key we want to start with * @throws LdapException * @throws CursorException */ public void beforeKey( K key ) throws LdapException, CursorException { checkNotClosed(); closeBrowser( browser ); try { browser = table.getBTree().browseFrom( key ); } catch ( IOException e ) { throw new CursorException( e ); } clearValue(); }
cursor = bt.browseFrom( key );
TupleCursor<NameRevision, Long> cursor = rm.btreeOfBtrees.browseFrom( nr );
try browser = table.getBTree().browseFrom( key );