org.apache.directory.server.xdbm.search.impl
Class SubtreeScopeCursor

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

public class SubtreeScopeCursor
extends AbstractIndexCursor<java.lang.Long,ServerEntry>

A Cursor over entries satisfying scope constraints with alias dereferencing considerations.

Version:
$Rev$
Author:
Apache Directory Project

Constructor Summary
SubtreeScopeCursor(Store<ServerEntry> db, SubtreeScopeEvaluator<ServerEntry> evaluator)
          Creates a Cursor over entries satisfying subtree level scope criteria.
 
Method Summary
 void after(IndexEntry<java.lang.Long,ServerEntry> element)
           
 void afterLast()
           
 void afterValue(java.lang.Long id, java.lang.Long value)
           
 boolean available()
           
 void before(IndexEntry<java.lang.Long,ServerEntry> element)
           
 void beforeFirst()
           
 void beforeValue(java.lang.Long id, java.lang.Long value)
           
 boolean first()
           
 IndexEntry<java.lang.Long,ServerEntry> 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

SubtreeScopeCursor

public SubtreeScopeCursor(Store<ServerEntry> db,
                          SubtreeScopeEvaluator<ServerEntry> evaluator)
                   throws java.lang.Exception
Creates a Cursor over entries satisfying subtree level scope criteria.

Parameters:
db - the entry store
evaluator - an IndexEntry (candidate) evaluator
Throws:
java.lang.Exception - on db access failures
Method Detail

available

public boolean available()

beforeValue

public void beforeValue(java.lang.Long id,
                        java.lang.Long value)
                 throws java.lang.Exception
Throws:
java.lang.Exception

before

public void before(IndexEntry<java.lang.Long,ServerEntry> element)
            throws java.lang.Exception
Throws:
java.lang.Exception

afterValue

public void afterValue(java.lang.Long id,
                       java.lang.Long value)
                throws java.lang.Exception
Throws:
java.lang.Exception

after

public void after(IndexEntry<java.lang.Long,ServerEntry> 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 IndexEntry<java.lang.Long,ServerEntry> get()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

isElementReused

public boolean isElementReused()


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.