|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.filter.SliceQueryFilter
public class SliceQueryFilter
| Nested Class Summary | |
|---|---|
static class |
SliceQueryFilter.Serializer
|
| Field Summary | |
|---|---|
int |
count
|
boolean |
reversed
|
static SliceQueryFilter.Serializer |
serializer
|
ColumnSlice[] |
slices
|
| Constructor Summary | |
|---|---|
SliceQueryFilter(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish,
boolean reversed,
int count)
|
|
SliceQueryFilter(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish,
boolean reversed,
int count,
int compositesToGroup)
|
|
SliceQueryFilter(ColumnSlice[] slices,
boolean reversed,
int count)
Constructor that accepts multiple slices. |
|
SliceQueryFilter(ColumnSlice[] slices,
boolean reversed,
int count,
int compositesToGroup,
int countMutliplierForCompatibility)
|
|
| 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.nio.ByteBuffer |
finish()
|
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 |
includes(java.util.Comparator<java.nio.ByteBuffer> cmp,
java.nio.ByteBuffer name)
|
boolean |
isReversed()
|
int |
lastCounted()
|
void |
setStart(java.nio.ByteBuffer start)
|
java.nio.ByteBuffer |
start()
|
java.lang.String |
toString()
|
void |
trim(ColumnFamily cf,
int trimTo)
|
void |
updateColumnsLimit(int newLimit)
|
SliceQueryFilter |
withUpdatedCount(int newCount)
|
SliceQueryFilter |
withUpdatedSlices(ColumnSlice[] newSlices)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SliceQueryFilter.Serializer serializer
public final ColumnSlice[] slices
public final boolean reversed
public volatile int count
| Constructor Detail |
|---|
public SliceQueryFilter(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish,
boolean reversed,
int count)
public SliceQueryFilter(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish,
boolean reversed,
int count,
int compositesToGroup)
public SliceQueryFilter(ColumnSlice[] slices,
boolean reversed,
int count)
public SliceQueryFilter(ColumnSlice[] slices,
boolean reversed,
int count,
int compositesToGroup,
int countMutliplierForCompatibility)
| Method Detail |
|---|
public SliceQueryFilter withUpdatedCount(int newCount)
public SliceQueryFilter withUpdatedSlices(ColumnSlice[] newSlices)
public OnDiskAtomIterator getMemtableColumnIterator(ColumnFamily cf,
DecoratedKey key)
IDiskAtomFilter
getMemtableColumnIterator in interface IDiskAtomFilter
public ISSTableColumnIterator getSSTableColumnIterator(SSTableReader sstable,
DecoratedKey key)
IDiskAtomFilter
getSSTableColumnIterator in interface IDiskAtomFilter
public ISSTableColumnIterator getSSTableColumnIterator(SSTableReader sstable,
FileDataInput file,
DecoratedKey key,
RowIndexEntry indexEntry)
IDiskAtomFilter
getSSTableColumnIterator in interface IDiskAtomFilterfile - Already opened file data input, saves us opening another onekey - The key of the row we are about to iterate over
public SuperColumn filterSuperColumn(SuperColumn superColumn,
int gcBefore)
IDiskAtomFilter
filterSuperColumn in interface IDiskAtomFiltersuperColumn - may be modified by filtering op.public java.util.Comparator<IColumn> getColumnComparator(AbstractType<?> comparator)
getColumnComparator in interface IDiskAtomFilter
public void collectReducedColumns(IColumnContainer container,
java.util.Iterator<IColumn> reducedColumns,
int gcBefore)
IDiskAtomFilter
collectReducedColumns in interface IDiskAtomFilterpublic int getLiveCount(ColumnFamily cf)
getLiveCount in interface IDiskAtomFilter
public void trim(ColumnFamily cf,
int trimTo)
public java.nio.ByteBuffer start()
public java.nio.ByteBuffer finish()
public void setStart(java.nio.ByteBuffer start)
public int lastCounted()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isReversed()
isReversed in interface IDiskAtomFilterpublic void updateColumnsLimit(int newLimit)
updateColumnsLimit in interface IDiskAtomFilter
public boolean includes(java.util.Comparator<java.nio.ByteBuffer> cmp,
java.nio.ByteBuffer name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||