org.apache.directory.server.xdbm.impl.avl
Class AvlTableDupsCursor<K,V>

java.lang.Object
  extended by org.apache.directory.shared.ldap.model.cursor.AbstractTupleCursor<K,V>
      extended by org.apache.directory.server.xdbm.impl.avl.AvlTableDupsCursor<K,V>
All Implemented Interfaces:
Iterable<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>, org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>, org.apache.directory.shared.ldap.model.cursor.TupleCursor<K,V>

public class AvlTableDupsCursor<K,V>
extends org.apache.directory.shared.ldap.model.cursor.AbstractTupleCursor<K,V>

A Cursor which walks and advance over AvlTables that may contain duplicate keys with values stored in an AvlTree. All duplicate keys are traversed returning the key and the value in a Tuple.

Author:
Apache Directory Project

Constructor Summary
AvlTableDupsCursor(AvlTable<K,V> table)
          Creates a new instance of AvlTableDupsCursor.
 
Method Summary
 void after(org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> element)
          
 void afterKey(K key)
          
 void afterLast()
          
 void afterValue(K key, V value)
          
 boolean available()
          
 void before(org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> element)
          
 void beforeFirst()
          
 void beforeKey(K key)
          
 void beforeValue(K key, V value)
          
 boolean first()
          
 org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> get()
          
 boolean last()
          
 boolean next()
          
 boolean previous()
          
 
Methods inherited from class org.apache.directory.shared.ldap.model.cursor.AbstractTupleCursor
checkNotClosed, close, close, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, iterator, setClosureMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvlTableDupsCursor

public AvlTableDupsCursor(AvlTable<K,V> table)
Creates a new instance of AvlTableDupsCursor.

Parameters:
table - the AvlTable to build a Cursor on.
Method Detail

available

public boolean available()


beforeKey

public void beforeKey(K key)
               throws Exception

Throws:
Exception

beforeValue

public void beforeValue(K key,
                        V value)
                 throws Exception

Throws:
Exception

afterKey

public void afterKey(K key)
              throws Exception

Throws:
Exception

afterValue

public void afterValue(K key,
                       V value)
                throws Exception

Throws:
Exception

after

public void after(org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> element)
           throws Exception

Throws:
Exception

afterLast

public void afterLast()
               throws Exception

Throws:
Exception

before

public void before(org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> element)
            throws Exception

Throws:
Exception

beforeFirst

public void beforeFirst()
                 throws Exception

Throws:
Exception

first

public boolean first()
              throws Exception

Throws:
Exception

get

public org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> get()
                                                             throws Exception

Throws:
Exception

last

public boolean last()
             throws Exception

Throws:
Exception

next

public boolean next()
             throws Exception

Throws:
Exception

previous

public boolean previous()
                 throws Exception

Throws:
Exception


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