Package org.apache.cassandra.db.rows
Class WithOnlyQueriedData<I extends BaseRowIterator<?>>
- java.lang.Object
-
- org.apache.cassandra.db.transform.Transformation<I>
-
- org.apache.cassandra.db.rows.WithOnlyQueriedData<I>
-
public class WithOnlyQueriedData<I extends BaseRowIterator<?>> extends Transformation<I>
Function to skip cells (from an iterator) that are not part of those queried by the user according to the providedColumnFilter. SeeUnfilteredRowIterators.withOnlyQueriedData(org.apache.cassandra.db.rows.UnfilteredRowIterator, org.apache.cassandra.db.filter.ColumnFilter)for more details.
-
-
Constructor Summary
Constructors Constructor Description WithOnlyQueriedData(ColumnFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RegularAndStaticColumnsapplyToPartitionColumns(RegularAndStaticColumns columns)Applied to thePartitionColumnsof any rows iterator.protected RowapplyToRow(Row row)Applied to any row we encounter in a rows iteratorprotected RowapplyToStatic(Row row)Applied to the static row of any rows iterator.-
Methods inherited from class org.apache.cassandra.db.transform.Transformation
apply, apply, apply, apply, applyToDeletion, applyToMarker, applyToPartition, applyToPartitionKey, onClose, onPartitionClose
-
-
-
-
Constructor Detail
-
WithOnlyQueriedData
public WithOnlyQueriedData(ColumnFilter filter)
-
-
Method Detail
-
applyToPartitionColumns
protected RegularAndStaticColumns applyToPartitionColumns(RegularAndStaticColumns columns)
Description copied from class:TransformationApplied to thePartitionColumnsof any rows iterator. NOTE: same remark than for applyToDeletion: it is only applied to the first iterator in a sequence of iterators filled by MoreContents.- Overrides:
applyToPartitionColumnsin classTransformation<I extends BaseRowIterator<?>>
-
applyToStatic
protected Row applyToStatic(Row row)
Description copied from class:TransformationApplied to the static row of any rows iterator. NOTE that this is only applied to the first iterator in any sequence of iterators filled by a MoreContents; the static data for such iterators is all expected to be equal- Overrides:
applyToStaticin classTransformation<I extends BaseRowIterator<?>>
-
applyToRow
protected Row applyToRow(Row row)
Description copied from class:TransformationApplied to any row we encounter in a rows iterator- Overrides:
applyToRowin classTransformation<I extends BaseRowIterator<?>>
-
-