Class SASIIndexQueryPlan
- java.lang.Object
-
- org.apache.cassandra.index.SingletonIndexQueryPlan
-
- org.apache.cassandra.index.sasi.plan.SASIIndexQueryPlan
-
- All Implemented Interfaces:
java.lang.Comparable<Index.QueryPlan>
,Index.QueryPlan
public class SASIIndexQueryPlan extends SingletonIndexQueryPlan
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SASIIndexQueryPlan
create(SASIIndex index, RowFilter rowFilter)
boolean
supportsReplicaFilteringProtection(RowFilter rowFilter)
Tells whether this index supports replica fitering protection or not.-
Methods inherited from class org.apache.cassandra.index.SingletonIndexQueryPlan
create, getEstimatedResultRows, getFirst, getIndexes, postIndexQueryFilter, searcherFor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.index.Index.QueryPlan
compareTo, isTopK, postProcessor, shouldEstimateInitialConcurrency, validate
-
-
-
-
Method Detail
-
create
@Nullable public static SASIIndexQueryPlan create(SASIIndex index, RowFilter rowFilter)
-
supportsReplicaFilteringProtection
public boolean supportsReplicaFilteringProtection(RowFilter rowFilter)
Description copied from interface:Index.QueryPlan
Tells whether this index supports replica fitering protection or not. Replica filtering protection might need to run the query row filter in the coordinator to detect stale results. An index implementation will be compatible with this protection mechanism if it returns the same results for the row filter as CQL will return withALLOW FILTERING
and without using the index. This means that index implementations using custom query syntax or applying transformations to the indexed data won't support it. See CASSANDRA-8272 for further details.- Parameters:
rowFilter
- rowFilter of query to decide if it supports replica filtering protection or not- Returns:
- true if this index supports replica filtering protection, false otherwise
-
-