org.apache.directory.server.xdbm.search.impl
Class AllEntriesCursor<ID>

java.lang.Object
  extended by org.apache.directory.server.xdbm.AbstractIndexCursor<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
      extended by org.apache.directory.server.xdbm.search.impl.AllEntriesCursor<ID>
All Implemented Interfaces:
java.lang.Iterable<IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>>, IndexCursor<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>, org.apache.directory.shared.ldap.cursor.Cursor<IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>>

public class AllEntriesCursor<ID>
extends AbstractIndexCursor<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID>

A Cursor over all entries in a partition which returns IndexEntries.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
AllEntriesCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db)
           
 
Method Summary
 void after(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
           
 void afterLast()
           
 void afterValue(ID key, ID value)
          An alternative to calling after(IndexEntry) which often may require wrapping an id and value in a newly created IndexEntry object that may be an unnecessary object creation.
 boolean available()
           
 void before(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
           
 void beforeFirst()
           
 void beforeValue(ID id, ID value)
          An alternative to calling before(IndexEntry) which often may require wrapping an id and value in a newly created IndexEntry object that may be an unnecessary object creation.
 boolean first()
           
 IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> get()
           
 boolean isElementReused()
           
 boolean last()
           
 boolean next()
           
 boolean previous()
           
 
Methods inherited from class org.apache.directory.server.xdbm.AbstractIndexCursor
checkNotClosed, close, close, isClosed, iterator, setClosureMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllEntriesCursor

public AllEntriesCursor(Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

afterValue

public void afterValue(ID key,
                       ID value)
                throws java.lang.Exception
Description copied from interface: IndexCursor
An alternative to calling after(IndexEntry) which often may require wrapping an id and value in a newly created IndexEntry object that may be an unnecessary object creation. Some implementations may not support this operation and may throw an UnsupportedOperationEception.

Parameters:
key - the id for the entry
value - the value to advance just after the last value
Throws:
java.lang.Exception - if there are faults performing this operation

beforeValue

public void beforeValue(ID id,
                        ID value)
                 throws java.lang.Exception
Description copied from interface: IndexCursor
An alternative to calling before(IndexEntry) which often may require wrapping an id and value in a newly created IndexEntry object that may be an unnecessary object creation. Some implementations may not support this operation and may throw an UnsupportedOperationEception.

Parameters:
id - the id for the entry
value - the value to advance just before
Throws:
java.lang.Exception - if there are faults performing this operation

after

public void after(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
           throws java.lang.Exception
Throws:
java.lang.Exception

afterLast

public void afterLast()
               throws java.lang.Exception
Throws:
java.lang.Exception

available

public boolean available()

before

public void before(IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
            throws java.lang.Exception
Throws:
java.lang.Exception

beforeFirst

public void beforeFirst()
                 throws java.lang.Exception
Throws:
java.lang.Exception

first

public boolean first()
              throws java.lang.Exception
Throws:
java.lang.Exception

get

public IndexEntry<ID,org.apache.directory.shared.ldap.entry.ServerEntry,ID> get()
                                                                         throws java.lang.Exception
Throws:
java.lang.Exception

isElementReused

public boolean isElementReused()

last

public boolean last()
             throws java.lang.Exception
Throws:
java.lang.Exception

next

public boolean next()
             throws java.lang.Exception
Throws:
java.lang.Exception

previous

public boolean previous()
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.