org.apache.directory.server.core.partition.impl.btree.jdbm
Class KeyBTreeCursor<E>
java.lang.Object
org.apache.directory.shared.ldap.cursor.AbstractCursor<E>
org.apache.directory.server.core.partition.impl.btree.jdbm.KeyBTreeCursor<E>
- All Implemented Interfaces:
- java.lang.Iterable<E>, org.apache.directory.shared.ldap.cursor.Cursor<E>
public class KeyBTreeCursor<E>
- extends org.apache.directory.shared.ldap.cursor.AbstractCursor<E>
Cursor over the keys of a JDBM BTree. Obviously does not return duplicate
keys since JDBM does not natively support multiple values for the same key.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Constructor Summary |
KeyBTreeCursor(BTree btree,
java.util.Comparator<E> comparator)
Creates a Cursor over the keys of a JDBM BTree. |
Methods inherited from class org.apache.directory.shared.ldap.cursor.AbstractCursor |
checkNotClosed, close, close, isClosed, iterator, setClosureMonitor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyBTreeCursor
public KeyBTreeCursor(BTree btree,
java.util.Comparator<E> comparator)
throws java.lang.Exception
- Creates a Cursor over the keys of a JDBM BTree.
- Parameters:
btree
- the JDBM BTree to build a Cursor overcomparator
- the Comparator used to determine key ordering
- Throws:
java.lang.Exception
- of there are problems accessing the BTree
available
public boolean available()
before
public void before(E element)
throws java.lang.Exception
- Throws:
java.lang.Exception
after
public void after(E element)
throws java.lang.Exception
- Throws:
java.lang.Exception
beforeFirst
public void beforeFirst()
throws java.lang.Exception
- Throws:
java.lang.Exception
afterLast
public void afterLast()
throws java.lang.Exception
- Throws:
java.lang.Exception
first
public boolean first()
throws java.lang.Exception
- Throws:
java.lang.Exception
last
public boolean last()
throws java.lang.Exception
- Throws:
java.lang.Exception
previous
public boolean previous()
throws java.lang.Exception
- Throws:
java.lang.Exception
next
public boolean next()
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public E get()
throws java.lang.Exception
- Throws:
java.lang.Exception
isElementReused
public boolean isElementReused()
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.