public class NamesQueryFilter extends java.lang.Object implements IDiskAtomFilter
Modifier and Type | Class and Description |
---|---|
static class |
NamesQueryFilter.Serializer |
Constructor and Description |
---|
NamesQueryFilter(java.util.SortedSet<CellName> columns) |
NamesQueryFilter(java.util.SortedSet<CellName> columns,
boolean countCQL3Rows) |
Modifier and Type | Method and Description |
---|---|
NamesQueryFilter |
cloneShallow() |
void |
collectReducedColumns(ColumnFamily container,
java.util.Iterator<Cell> reducedColumns,
DecoratedKey key,
int gcBefore,
long now)
collects columns from reducedColumns into returnCF.
|
ColumnCounter |
columnCounter(CellNameType comparator,
long now) |
boolean |
countCQL3Rows() |
boolean |
countCQL3Rows(CellNameType comparator) |
java.util.Comparator<Cell> |
getColumnComparator(CellNameType comparator) |
java.util.Iterator<Cell> |
getColumnIterator(ColumnFamily cf)
returns an iterator that returns columns from the given columnFamily
matching the Filter criteria in sorted order.
|
OnDiskAtomIterator |
getColumnIterator(DecoratedKey key,
ColumnFamily cf) |
int |
getLiveCount(ColumnFamily cf,
long now) |
java.util.Iterator<RangeTombstone> |
getRangeTombstoneIterator(ColumnFamily source) |
OnDiskAtomIterator |
getSSTableColumnIterator(SSTableReader sstable,
DecoratedKey key)
returns an iterator that returns columns from the given SSTable
matching the Filter criteria in sorted order.
|
OnDiskAtomIterator |
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 |
isFullyCoveredBy(ColumnFamily cf,
long now)
Whether the provided cf, that is assumed to contain the head of the
partition, contains enough data to cover this filter.
|
boolean |
isHeadFilter() |
boolean |
isReversed() |
boolean |
maySelectPrefix(CType type,
Composite prefix) |
boolean |
shouldInclude(SSTableReader sstable) |
java.lang.String |
toString() |
void |
updateColumnsLimit(int newLimit) |
NamesQueryFilter |
withUpdatedColumns(java.util.SortedSet<CellName> newColumns) |
public final java.util.SortedSet<CellName> columns
public NamesQueryFilter(java.util.SortedSet<CellName> columns)
public NamesQueryFilter(java.util.SortedSet<CellName> columns, boolean countCQL3Rows)
public NamesQueryFilter cloneShallow()
cloneShallow
in interface IDiskAtomFilter
public NamesQueryFilter withUpdatedColumns(java.util.SortedSet<CellName> newColumns)
public java.util.Iterator<Cell> getColumnIterator(ColumnFamily cf)
IDiskAtomFilter
getColumnIterator
in interface IDiskAtomFilter
public OnDiskAtomIterator getColumnIterator(DecoratedKey key, ColumnFamily cf)
getColumnIterator
in interface IDiskAtomFilter
public OnDiskAtomIterator getSSTableColumnIterator(SSTableReader sstable, DecoratedKey key)
IDiskAtomFilter
getSSTableColumnIterator
in interface IDiskAtomFilter
public OnDiskAtomIterator getSSTableColumnIterator(SSTableReader sstable, FileDataInput file, DecoratedKey key, RowIndexEntry indexEntry)
IDiskAtomFilter
getSSTableColumnIterator
in interface IDiskAtomFilter
file
- Already opened file data input, saves us opening another onekey
- The key of the row we are about to iterate overpublic void collectReducedColumns(ColumnFamily container, java.util.Iterator<Cell> reducedColumns, DecoratedKey key, int gcBefore, long now)
IDiskAtomFilter
collectReducedColumns
in interface IDiskAtomFilter
public java.util.Comparator<Cell> getColumnComparator(CellNameType comparator)
getColumnComparator
in interface IDiskAtomFilter
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isReversed()
isReversed
in interface IDiskAtomFilter
public void updateColumnsLimit(int newLimit)
updateColumnsLimit
in interface IDiskAtomFilter
public int getLiveCount(ColumnFamily cf, long now)
getLiveCount
in interface IDiskAtomFilter
public boolean maySelectPrefix(CType type, Composite prefix)
maySelectPrefix
in interface IDiskAtomFilter
public boolean shouldInclude(SSTableReader sstable)
shouldInclude
in interface IDiskAtomFilter
public boolean isFullyCoveredBy(ColumnFamily cf, long now)
IDiskAtomFilter
isFullyCoveredBy
in interface IDiskAtomFilter
public boolean isHeadFilter()
isHeadFilter
in interface IDiskAtomFilter
public boolean countCQL3Rows(CellNameType comparator)
countCQL3Rows
in interface IDiskAtomFilter
public boolean countCQL3Rows()
public ColumnCounter columnCounter(CellNameType comparator, long now)
columnCounter
in interface IDiskAtomFilter
public java.util.Iterator<RangeTombstone> getRangeTombstoneIterator(ColumnFamily source)
getRangeTombstoneIterator
in interface IDiskAtomFilter
Copyright © 2020 The Apache Software Foundation