Package org.apache.cassandra.io.sstable
Class ReducingKeyIterator
- java.lang.Object
-
- org.apache.cassandra.io.sstable.ReducingKeyIterator
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.util.Iterator<DecoratedKey>,CloseableIterator<DecoratedKey>
public class ReducingKeyIterator extends java.lang.Object implements CloseableIterator<DecoratedKey>
Caller must acquire and release references to the sstables used here.
-
-
Constructor Summary
Constructors Constructor Description ReducingKeyIterator(java.util.Collection<SSTableReader> sstables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetBytesRead()longgetTotalBytes()booleanhasNext()DecoratedKeynext()voidremove()
-
-
-
Constructor Detail
-
ReducingKeyIterator
public ReducingKeyIterator(java.util.Collection<SSTableReader> sstables)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceCloseableIterator<DecoratedKey>
-
getTotalBytes
public long getTotalBytes()
-
getBytesRead
public long getBytesRead()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<DecoratedKey>
-
next
public DecoratedKey next()
- Specified by:
nextin interfacejava.util.Iterator<DecoratedKey>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<DecoratedKey>
-
-