voldemort.store
Class PartitionListIterator

java.lang.Object
  extended by voldemort.store.PartitionListIterator
All Implemented Interfaces:
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>>, ClosableIterator<Pair<ByteArray,Versioned<byte[]>>>

public class PartitionListIterator
extends java.lang.Object
implements ClosableIterator<Pair<ByteArray,Versioned<byte[]>>>

Iterator that uses efficient partition scan to iterate across a list of supplied partitions


Constructor Summary
PartitionListIterator(StorageEngine<ByteArray,byte[],byte[]> storageEngine, java.util.List<java.lang.Integer> partitionsToFetch)
           
 
Method Summary
 void close()
          Close the iterator
protected  void finalize()
           
 boolean hasNext()
           
 Pair<ByteArray,Versioned<byte[]>> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionListIterator

public PartitionListIterator(StorageEngine<ByteArray,byte[],byte[]> storageEngine,
                             java.util.List<java.lang.Integer> partitionsToFetch)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>>

next

public Pair<ByteArray,Versioned<byte[]>> next()
Specified by:
next in interface java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>>

finalize

protected final void finalize()
Overrides:
finalize in class java.lang.Object

close

public void close()
Description copied from interface: ClosableIterator
Close the iterator

Specified by:
close in interface ClosableIterator<Pair<ByteArray,Versioned<byte[]>>>


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu