org.apache.directory.server.core.partition.impl.btree
Class ValueArrayCursor<K,V>

java.lang.Object
  extended by org.apache.directory.shared.ldap.model.cursor.AbstractCursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
      extended by org.apache.directory.server.core.partition.impl.btree.ValueArrayCursor<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>>

public class ValueArrayCursor<K,V>
extends org.apache.directory.shared.ldap.model.cursor.AbstractCursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>

A Cursor which returns the values of a single key as Tuples.

Author:
Apache Directory Project

Constructor Summary
ValueArrayCursor(K key, List<V> values)
           
ValueArrayCursor(K key, V[] values)
           
 
Method Summary
 boolean absolute(int absolutePosition)
           
 void after(org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> element)
           
 void afterLast()
           
 boolean available()
           
 void before(org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> element)
           
 void beforeFirst()
           
 boolean first()
           
 org.apache.directory.shared.ldap.model.cursor.Tuple<K,V> get()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 boolean next()
           
 boolean previous()
           
 
Methods inherited from class org.apache.directory.shared.ldap.model.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
 

Constructor Detail

ValueArrayCursor

public ValueArrayCursor(K key,
                        V[] values)

ValueArrayCursor

public ValueArrayCursor(K key,
                        List<V> values)
Method Detail

available

public boolean available()

before

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

after

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

beforeFirst

public void beforeFirst()
                 throws Exception
Throws:
Exception

afterLast

public void afterLast()
               throws Exception
Throws:
Exception

absolute

public boolean absolute(int absolutePosition)
                 throws Exception
Throws:
Exception

first

public boolean first()
              throws Exception
Throws:
Exception

last

public boolean last()
             throws Exception
Throws:
Exception

isFirst

public boolean isFirst()
                throws Exception
Specified by:
isFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Overrides:
isFirst in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Throws:
Exception

isLast

public boolean isLast()
               throws Exception
Specified by:
isLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Overrides:
isLast in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Throws:
Exception

isAfterLast

public boolean isAfterLast()
                    throws Exception
Specified by:
isAfterLast in interface org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Overrides:
isAfterLast in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Throws:
Exception

isBeforeFirst

public boolean isBeforeFirst()
                      throws Exception
Specified by:
isBeforeFirst in interface org.apache.directory.shared.ldap.model.cursor.Cursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Overrides:
isBeforeFirst in class org.apache.directory.shared.ldap.model.cursor.AbstractCursor<org.apache.directory.shared.ldap.model.cursor.Tuple<K,V>>
Throws:
Exception

previous

public boolean previous()
                 throws Exception
Throws:
Exception

next

public boolean next()
             throws Exception
Throws:
Exception

get

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


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