Class QueryController
- java.lang.Object
-
- org.apache.cassandra.index.sasi.plan.QueryController
-
public class QueryController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QueryController(ColumnFamilyStore cfs, ReadCommand command, long timeQuotaMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkpoint()
DataRange
dataRange()
void
finish()
java.util.Collection<RowFilter.Expression>
getExpressions()
ColumnIndex
getIndex(RowFilter.Expression expression)
RangeIterator.Builder<java.lang.Long,Token>
getIndexes(Operation.OperationType op, java.util.Collection<Expression> expressions)
Build a range iterator from the given list of expressions by applying given operation (OR/AND).AbstractType<?>
getKeyValidator()
UnfilteredRowIterator
getPartition(DecoratedKey key, ReadExecutionController executionController)
TableMetadata
metadata()
void
releaseIndexes(Operation operation)
-
-
-
Constructor Detail
-
QueryController
public QueryController(ColumnFamilyStore cfs, ReadCommand command, long timeQuotaMs)
-
-
Method Detail
-
metadata
public TableMetadata metadata()
-
getExpressions
public java.util.Collection<RowFilter.Expression> getExpressions()
-
dataRange
public DataRange dataRange()
-
getKeyValidator
public AbstractType<?> getKeyValidator()
-
getIndex
@Nullable public ColumnIndex getIndex(RowFilter.Expression expression)
-
getPartition
public UnfilteredRowIterator getPartition(DecoratedKey key, ReadExecutionController executionController)
-
getIndexes
public RangeIterator.Builder<java.lang.Long,Token> getIndexes(Operation.OperationType op, java.util.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
public void releaseIndexes(Operation operation)
-
finish
public void finish()
-
-