org.hypergraphdb.storage
Class SingleKeyResultSet<T>

java.lang.Object
  extended by org.hypergraphdb.storage.IndexResultSet<T>
      extended by org.hypergraphdb.storage.SingleKeyResultSet<T>
All Implemented Interfaces:
java.util.Iterator<T>, HGRandomAccessResult<T>, HGSearchResult<T>, TwoWayIterator<T>, CloseMe

public class SingleKeyResultSet<T>
extends IndexResultSet<T>

Implements a BerkeleyDB Cursor based result set that iterates over all duplicates of a given key.

Author:
Borislav Iordanov

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hypergraphdb.HGRandomAccessResult
HGRandomAccessResult.GotoResult
 
Field Summary
 
Fields inherited from interface org.hypergraphdb.HGSearchResult
EMPTY
 
Constructor Summary
SingleKeyResultSet(BDBTxCursor cursor, com.sleepycat.db.DatabaseEntry key, ByteArrayConverter<T> converter)
           
 
Method Summary
 boolean isOrdered()
          Return true if the elements in this search result are in ordered and false otherwise.
 
Methods inherited from class org.hypergraphdb.storage.IndexResultSet
close, count, current, goTo, hasNext, hasPrev, next, prev, remove, removeCurrent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleKeyResultSet

public SingleKeyResultSet(BDBTxCursor cursor,
                          com.sleepycat.db.DatabaseEntry key,
                          ByteArrayConverter<T> converter)
Method Detail

isOrdered

public boolean isOrdered()
Description copied from interface: HGSearchResult

Return true if the elements in this search result are in ordered and false otherwise. It is assumed that when elements are ordered, they are instances of java.lang.Comparable