Class QueryController
java.lang.Object
org.apache.cassandra.index.sasi.plan.QueryController
-
Constructor Summary
ConstructorsConstructorDescriptionQueryController(ColumnFamilyStore cfs, ReadCommand command, long timeQuotaMs) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfinish()getIndex(RowFilter.Expression expression) getIndexes(Operation.OperationType op, Collection<Expression> expressions) Build a range iterator from the given list of expressions by applying given operation (OR/AND).AbstractType<?>getPartition(DecoratedKey key, ReadExecutionController executionController) metadata()voidreleaseIndexes(Operation operation)
-
Constructor Details
-
QueryController
-
-
Method Details
-
metadata
-
getExpressions
-
dataRange
-
getKeyValidator
-
getIndex
-
getPartition
public UnfilteredRowIterator getPartition(DecoratedKey key, ReadExecutionController executionController) -
getIndexes
public RangeIterator.Builder<Long,Token> getIndexes(Operation.OperationType op, Collection<Expression> expressions) Build a range iterator from the given list of expressions by applying given operation (OR/AND). Building of such iterator involves index search, results of which are persisted in the internal resources list and can be released later viareleaseIndexes(Operation).- Parameters:
op- The operation type to coalesce expressions with.expressions- The expressions to build range iterator from (expressions with not results are ignored).- Returns:
- The range builder based on given expressions and operation type.
-
checkpoint
public void checkpoint() -
releaseIndexes
-
finish
public void finish()
-