public class SSTableIdentityIterator extends java.lang.Object implements java.lang.Comparable<SSTableIdentityIterator>, OnDiskAtomIterator
Modifier and Type | Field and Description |
---|---|
ColumnSerializer.Flag |
flag |
Constructor and Description |
---|
SSTableIdentityIterator(SSTableReader sstable,
RandomAccessReader file,
DecoratedKey key)
Used to iterate through the columns of a row.
|
SSTableIdentityIterator(SSTableReader sstable,
RandomAccessReader file,
DecoratedKey key,
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() |
DecoratedKey |
getKey() |
java.lang.String |
getPath() |
boolean |
hasNext() |
OnDiskAtom |
next() |
void |
remove() |
public final ColumnSerializer.Flag flag
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key)
sstable
- SSTable we are reading ffrom.file
- Reading using this file.key
- Key of this row.public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, boolean checkData)
sstable
- SSTable we are reading ffrom.file
- Reading using this file.key
- Key of this row.checkData
- 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 int compareTo(SSTableIdentityIterator o)
compareTo
in interface java.lang.Comparable<SSTableIdentityIterator>
Copyright © 2015 The Apache Software Foundation