|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.columniterator.SSTableSliceIterator
public class SSTableSliceIterator
A Column Iterator over SSTable
| Constructor Summary | |
|---|---|
SSTableSliceIterator(SSTableReader sstable,
DecoratedKey key,
java.nio.ByteBuffer startColumn,
java.nio.ByteBuffer finishColumn,
boolean reversed)
|
|
SSTableSliceIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey key,
java.nio.ByteBuffer startColumn,
java.nio.ByteBuffer finishColumn,
boolean reversed)
An iterator for a slice within an SSTable |
|
| Method Summary | |
|---|---|
void |
close()
clean up any open resources |
ColumnFamily |
getColumnFamily()
returns the CF of the column being iterated. |
DecoratedKey |
getKey()
|
boolean |
hasNext()
|
IColumn |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSTableSliceIterator(SSTableReader sstable,
DecoratedKey key,
java.nio.ByteBuffer startColumn,
java.nio.ByteBuffer finishColumn,
boolean reversed)
public SSTableSliceIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey key,
java.nio.ByteBuffer startColumn,
java.nio.ByteBuffer finishColumn,
boolean reversed)
metadata - Metadata for the CFS we are reading fromfile - Optional parameter that input is read from. If null is passed, this class creates an appropriate one automatically.
If this class creates, it will close the underlying file when #close() is called.
If a caller passes a non-null argument, this class will NOT close the underlying file when the iterator is closed (i.e. the caller is responsible for closing the file)
In all cases the caller should explicitly #close() this iterator.key - The key the requested slice resides understartColumn - The start of the slicefinishColumn - The end of the slicereversed - Results are returned in reverse order iff reversed is true.| Method Detail |
|---|
public DecoratedKey getKey()
getKey in interface IColumnIterator
public ColumnFamily getColumnFamily()
throws java.io.IOException
IColumnIterator
getColumnFamily in interface IColumnIteratorjava.io.IOExceptionpublic boolean hasNext()
hasNext in interface java.util.Iterator<IColumn>public IColumn next()
next in interface java.util.Iterator<IColumn>public void remove()
remove in interface java.util.Iterator<IColumn>
public void close()
throws java.io.IOException
IColumnIterator
close in interface IColumnIteratorjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||