|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFilter
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).
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)
|
IColumnIterator |
getMemtableColumnIterator(ColumnFamily cf,
DecoratedKey<?> key,
AbstractType comparator)
returns an iterator that returns columns from the given memtable matching the Filter criteria in sorted order. |
IColumnIterator |
getSSTableColumnIterator(SSTableReader sstable,
DecoratedKey<?> key)
returns an iterator that returns columns from the given SSTable matching the Filter criteria in sorted order. |
IColumnIterator |
getSSTableColumnIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey<?> key)
Get an iterator that returns columns from the given SSTable using the opened file matching the Filter criteria in sorted order. |
boolean |
isReversed()
|
Method Detail |
---|
IColumnIterator getMemtableColumnIterator(ColumnFamily cf, DecoratedKey<?> key, AbstractType comparator)
IColumnIterator getSSTableColumnIterator(SSTableReader sstable, FileDataInput file, DecoratedKey<?> key)
sstable
- file
- Already opened file data input, saves us opening another onekey
- The key of the row we are about to iterate overIColumnIterator 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |