Package org.apache.cassandra.io.sstable
Class KeyIterator
java.lang.Object
org.apache.cassandra.utils.AbstractIterator<DecoratedKey>
org.apache.cassandra.io.sstable.KeyIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<DecoratedKey>,AutoCloseable,Iterator<DecoratedKey>,CloseableIterator<DecoratedKey>
public class KeyIterator
extends AbstractIterator<DecoratedKey>
implements CloseableIterator<DecoratedKey>
-
Constructor Summary
ConstructorsConstructorDescriptionKeyIterator(KeyReader it, IPartitioner partitioner, long totalBytes, ReadWriteLock fileAccessLock) -
Method Summary
Methods inherited from class org.apache.cassandra.utils.AbstractIterator
endOfData, hasNext, next, peek, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext
-
Constructor Details
-
KeyIterator
public KeyIterator(KeyReader it, IPartitioner partitioner, long totalBytes, ReadWriteLock fileAccessLock)
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classAbstractIterator<DecoratedKey>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<DecoratedKey>- Overrides:
closein classAbstractIterator<DecoratedKey>
-
getBytesRead
public long getBytesRead() -
getTotalBytes
public long getTotalBytes()
-