/** * {@inheritDoc} */ public void after( Tuple<K, V> element ) throws LdapException, CursorException { afterValue( key, element.getValue() ); }
/** * {@inheritDoc} */ public boolean first() throws LdapException, CursorException { beforeFirst(); return next(); }
/** * {@inheritDoc} */ public void beforeValue( K key, V value ) throws Exception { checkNotClosed(); if ( key != null && !key.equals( this.key ) ) { throw new UnsupportedOperationException( I18n.err( I18n.ERR_446 ) ); } browser = btree.browse( value ); clearValue(); }
/** * {@inheritDoc} */ public Tuple<K, V> get() throws CursorException { checkNotClosed(); if ( valueAvailable ) { return returnedTuple; } throw new InvalidCursorPositionException(); }
return new KeyTupleBTreeCursor<>( tree, key, valueComparator );
/** * {@inheritDoc} */ public void beforeFirst() throws LdapException, CursorException { checkNotClosed(); try { browser = btree.browse(); clearValue(); } catch ( IOException e ) { throw new CursorException( e ); } }
/** * {@inheritDoc} */ public void afterLast() throws LdapException, CursorException { checkNotClosed(); try { browser = btree.browse( null ); } catch ( IOException e ) { throw new CursorException( e ); } }
/** * Positions this Cursor over the same keys before the value of the * supplied valueTuple. The supplied element Tuple's key is not considered at * all. * * @param element the valueTuple who's value is used to position this Cursor * @throws LdapException if there are failures to position the Cursor * @throws CursorException if there are failures to position the Cursor */ public void before( Tuple<K, V> element ) throws LdapException, CursorException { checkNotClosed(); try { browser = btree.browse( element.getValue() ); clearValue(); } catch ( IOException e ) { throw new CursorException( e ); } }
checkNotClosed(); clearValue(); clearValue();
public boolean next() throws LdapException, CursorException checkNotClosed(); clearValue();
public boolean previous() throws LdapException, CursorException checkNotClosed(); clearValue();