public class SSTableIdentityIterator extends java.lang.Object implements java.lang.Comparable<SSTableIdentityIterator>, ICountableColumnIterator
| Modifier and Type | Field and Description |
|---|---|
long |
dataSize |
IColumnSerializer.Flag |
flag |
| Constructor and Description |
|---|
SSTableIdentityIterator(CFMetaData metadata,
java.io.DataInput file,
java.lang.String filename,
DecoratedKey key,
long dataStart,
long dataSize,
IColumnSerializer.Flag flag) |
SSTableIdentityIterator(SSTableReader sstable,
RandomAccessReader file,
DecoratedKey key,
long dataStart,
long dataSize)
Used to iterate through the columns of a row.
|
SSTableIdentityIterator(SSTableReader sstable,
RandomAccessReader file,
DecoratedKey key,
long dataStart,
long dataSize,
boolean checkData)
Used to iterate through the columns of a row.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
clean up any open resources
|
int |
compareTo(SSTableIdentityIterator o) |
int |
getColumnCount() |
ColumnFamily |
getColumnFamily() |
ColumnFamily |
getColumnFamilyWithColumns(ISortedColumns.Factory containerFactory) |
DecoratedKey |
getKey() |
java.lang.String |
getPath() |
boolean |
hasNext() |
OnDiskAtom |
next() |
void |
remove() |
void |
reset() |
public final long dataSize
public final IColumnSerializer.Flag flag
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, long dataStart, long dataSize)
sstable - SSTable we are reading ffrom.file - Reading using this file.key - Key of this row.dataStart - Data for this row starts at this pos.dataSize - length of row datajava.io.IOExceptionpublic SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, long dataStart, long dataSize, boolean checkData)
sstable - SSTable we are reading ffrom.file - Reading using this file.key - Key of this row.dataStart - Data for this row starts at this pos.dataSize - length of row datacheckData - if true, do its best to deserialize and check the coherence of row datapublic SSTableIdentityIterator(CFMetaData metadata, java.io.DataInput file, java.lang.String filename, DecoratedKey key, long dataStart, long dataSize, IColumnSerializer.Flag flag)
public DecoratedKey getKey()
getKey in interface OnDiskAtomIteratorpublic ColumnFamily getColumnFamily()
getColumnFamily in interface OnDiskAtomIteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator<OnDiskAtom>public OnDiskAtom next()
next in interface java.util.Iterator<OnDiskAtom>public void remove()
remove in interface java.util.Iterator<OnDiskAtom>public void close()
OnDiskAtomIteratorclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface OnDiskAtomIteratorpublic java.lang.String getPath()
public ColumnFamily getColumnFamilyWithColumns(ISortedColumns.Factory containerFactory) throws java.io.IOException
java.io.IOExceptionpublic int compareTo(SSTableIdentityIterator o)
compareTo in interface java.lang.Comparable<SSTableIdentityIterator>public void reset()
reset in interface ICountableColumnIteratorpublic int getColumnCount()
getColumnCount in interface ICountableColumnIteratorCopyright © 2014 The Apache Software Foundation