public class SSTableIdentityIterator extends java.lang.Object implements java.lang.Comparable<SSTableIdentityIterator>, OnDiskAtomIterator
Modifier and Type | Field and Description |
---|---|
long |
dataSize |
ColumnSerializer.Flag |
flag |
Constructor and Description |
---|
SSTableIdentityIterator(SSTableReader sstable,
RandomAccessReader file,
DecoratedKey key,
long dataSize)
Used to iterate through the columns of a row.
|
SSTableIdentityIterator(SSTableReader sstable,
RandomAccessReader file,
DecoratedKey key,
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) |
ColumnFamily |
getColumnFamily() |
ColumnFamily |
getColumnFamilyWithColumns(ColumnFamily.Factory containerFactory) |
DecoratedKey |
getKey() |
java.lang.String |
getPath() |
boolean |
hasNext() |
OnDiskAtom |
next() |
void |
remove() |
public final long dataSize
public final ColumnSerializer.Flag flag
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, long dataSize)
sstable
- SSTable we are reading ffrom.file
- Reading using this file.key
- Key of this row.dataSize
- length of row datajava.io.IOException
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, long dataSize, boolean checkData)
sstable
- SSTable we are reading ffrom.file
- Reading using this file.key
- Key of this row.dataSize
- length of row datacheckData
- if true, do its best to deserialize and check the coherence of row datapublic DecoratedKey getKey()
getKey
in interface OnDiskAtomIterator
public ColumnFamily getColumnFamily()
getColumnFamily
in interface OnDiskAtomIterator
public 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()
OnDiskAtomIterator
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface OnDiskAtomIterator
public java.lang.String getPath()
public ColumnFamily getColumnFamilyWithColumns(ColumnFamily.Factory containerFactory)
public int compareTo(SSTableIdentityIterator o)
compareTo
in interface java.lang.Comparable<SSTableIdentityIterator>
Copyright © 2013 The Apache Software Foundation