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

java.lang.Object
  extended by org.apache.directory.shared.ldap.cursor.AbstractCursor<Tuple>
      extended by org.apache.directory.server.core.partition.impl.btree.ValueArrayCursor<K,V>
All Implemented Interfaces:
java.lang.Iterable<Tuple>, org.apache.directory.shared.ldap.cursor.Cursor<Tuple>

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

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

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

Constructor Summary
ValueArrayCursor(K key, java.util.List<V> values)
           
ValueArrayCursor(K key, V[] values)
           
 
Method Summary
 boolean absolute(int absolutePosition)
           
 void after(Tuple element)
           
 void afterLast()
           
 boolean available()
           
 void before(Tuple element)
           
 void beforeFirst()
           
 boolean first()
           
 Tuple get()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isElementReused()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 boolean next()
           
 boolean previous()
           
 
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
 

Constructor Detail

ValueArrayCursor

public ValueArrayCursor(K key,
                        V[] values)

ValueArrayCursor

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

available

public boolean available()

before

public void before(Tuple element)
            throws java.lang.Exception
Throws:
java.lang.Exception

after

public void after(Tuple 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

absolute

public boolean absolute(int absolutePosition)
                 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

isFirst

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

isLast

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

isAfterLast

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

isBeforeFirst

public boolean isBeforeFirst()
                      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 Tuple get()
          throws java.lang.Exception
Throws:
java.lang.Exception

isElementReused

public boolean isElementReused()


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