|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDiskAtomFilter
Given an implementation-specific description of what columns to look for, provides methods to extract the desired columns from a Memtable, SSTable, or SuperColumn. Either the get*ColumnIterator methods will be called, or filterSuperColumn, but not both on the same object. QueryFilter takes care of putting the two together if subcolumn filtering needs to be done, based on the querypath that it knows (but that IFilter implementations are oblivious to).
Nested Class Summary | |
---|---|
static class |
IDiskAtomFilter.Serializer
|
Method Summary | |
---|---|
void |
collectReducedColumns(IColumnContainer container,
java.util.Iterator<IColumn> reducedColumns,
int gcBefore)
collects columns from reducedColumns into returnCF. |
SuperColumn |
filterSuperColumn(SuperColumn superColumn,
int gcBefore)
subcolumns of a supercolumn are unindexed, so to pick out parts of those we operate in-memory. |
java.util.Comparator<IColumn> |
getColumnComparator(AbstractType<?> comparator)
|
int |
getLiveCount(ColumnFamily cf)
|
OnDiskAtomIterator |
getMemtableColumnIterator(ColumnFamily cf,
DecoratedKey key)
returns an iterator that returns columns from the given memtable matching the Filter criteria in sorted order. |
ISSTableColumnIterator |
getSSTableColumnIterator(SSTableReader sstable,
DecoratedKey key)
returns an iterator that returns columns from the given SSTable matching the Filter criteria in sorted order. |
ISSTableColumnIterator |
getSSTableColumnIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey key,
RowIndexEntry indexEntry)
Get an iterator that returns columns from the given SSTable using the opened file matching the Filter criteria in sorted order. |
boolean |
isReversed()
|
void |
updateColumnsLimit(int newLimit)
|
Method Detail |
---|
OnDiskAtomIterator getMemtableColumnIterator(ColumnFamily cf, DecoratedKey key)
ISSTableColumnIterator getSSTableColumnIterator(SSTableReader sstable, FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry)
sstable
- file
- Already opened file data input, saves us opening another onekey
- The key of the row we are about to iterate overISSTableColumnIterator getSSTableColumnIterator(SSTableReader sstable, DecoratedKey key)
void collectReducedColumns(IColumnContainer container, java.util.Iterator<IColumn> reducedColumns, int gcBefore)
SuperColumn filterSuperColumn(SuperColumn superColumn, int gcBefore)
superColumn
- may be modified by filtering op.java.util.Comparator<IColumn> getColumnComparator(AbstractType<?> comparator)
boolean isReversed()
void updateColumnsLimit(int newLimit)
int getLiveCount(ColumnFamily cf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |