Package org.apache.cassandra.index.sai
Class QueryContext
java.lang.Object
org.apache.cassandra.index.sai.QueryContext
Tracks state relevant to the execution of a single query, including metrics and timeout monitoring.
Fields here are non-volatile, as they are accessed from a single thread.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlonglonglonglongfinal longbooleantrueif the local query for this context has matches from Memtable-attached indexes or indexes on unrepaired SSTables, andfalseotherwise.longbooleanlonglonglonglonglonglong -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
executionQuotaNano
public final long executionQuotaNano -
sstablesHit
public long sstablesHit -
segmentsHit
public long segmentsHit -
partitionsRead
public long partitionsRead -
rowsFiltered
public long rowsFiltered -
trieSegmentsHit
public long trieSegmentsHit -
triePostingsSkips
public long triePostingsSkips -
triePostingsDecodes
public long triePostingsDecodes -
balancedTreePostingListsHit
public long balancedTreePostingListsHit -
balancedTreeSegmentsHit
public long balancedTreeSegmentsHit -
balancedTreePostingsSkips
public long balancedTreePostingsSkips -
balancedTreePostingsDecodes
public long balancedTreePostingsDecodes -
queryTimedOut
public boolean queryTimedOut -
hasUnrepairedMatches
public boolean hasUnrepairedMatchestrueif the local query for this context has matches from Memtable-attached indexes or indexes on unrepaired SSTables, andfalseotherwise. When this isfalse,FilterTreecan ignore the coordinator suggestion to downgrade to non-strict filtering, potentially reducing the number of false positives.
-
-
Constructor Details
-
QueryContext
-
-
Method Details
-
totalQueryTimeNs
public long totalQueryTimeNs() -
checkpoint
public void checkpoint() -
limit
public int limit()
-