|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.filter.AbstractQueryRecorderFilter
public abstract class AbstractQueryRecorderFilter
Abstract base class implementation of QueryRecorderFilter
.
Constructor Summary | |
---|---|
AbstractQueryRecorderFilter() |
Method Summary | |
---|---|
protected static void |
explain(Filter filter, java.util.Map mapIndexes, java.util.Set setKeys, QueryRecord.PartialResult.ExplainStep step) Record an estimated cost of query execution for a given filter. |
void |
explain(QueryContext ctx, QueryRecord.PartialResult.ExplainStep step, java.util.Set setKeys) Record the projected query execution cost by this filter. |
protected static boolean |
trace(Filter filter, java.util.Map.Entry entry, QueryRecord.PartialResult.TraceStep step) Record the actual cost of query execution for a given filter. |
protected static Filter |
trace(Filter filter, java.util.Map mapIndexes, java.util.Set setKeys, QueryRecord.PartialResult.TraceStep step) Record the actual cost of applying the specified filter to the specified keySet. |
boolean |
trace(QueryContext ctx, QueryRecord.PartialResult.TraceStep step, java.util.Map.Entry entry) Evaluate the specified entry against this filter and record the evaluation cost on the given step of the QueryRecord . |
Filter |
trace(QueryContext ctx, QueryRecord.PartialResult.TraceStep step, java.util.Set setKeys) Filter the given keys using available indexes and record the cost of execution on the given step of the QueryRecord . |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
Methods inherited from interface com.tangosol.util.filter.EntryFilter |
---|
evaluateEntry |
Methods inherited from interface com.tangosol.util.Filter |
---|
evaluate |
Constructor Detail |
---|
public AbstractQueryRecorderFilter()
Method Detail |
---|
public void explain(QueryContext ctx, QueryRecord.PartialResult.ExplainStep step, java.util.Set setKeys)
This method is expected to record the order of execution and estimated cost of applying corresponding indexes in the given step
without actually applying any indexes or evaluating entries.
explain
in interface QueryRecorderFilter
ctx
- the query contextstep
- the step used to record the estimated execution costsetKeys
- the set of keys that would be filteredpublic Filter trace(QueryContext ctx, QueryRecord.PartialResult.TraceStep step, java.util.Set setKeys)
QueryRecord
.
This method should record the size of the given key set before and after applying corresponding indexes using QueryRecord.PartialResult.RecordableStep.recordPreFilterKeys(int)
and QueryRecord.PartialResult.TraceStep.recordPostFilterKeys(int)
as well as the corresponding execution time using the QueryRecord.PartialResult.TraceStep.recordDuration(long)
method.
This method is only called if the filter is an IndexAwareFilter
and its implementations should explicitly call applyIndex()
to actually perform the query. Additionally, this method should return the filter object (if any) returned by the applyIndex() call.
trace
in interface QueryRecorderFilter
ctx
- the query contextstep
- the step used to record the execution costsetKeys
- the mutable set of keys that remain to be filteredIndexAwareFilter.applyIndex(Map, Set)
public boolean trace(QueryContext ctx, QueryRecord.PartialResult.TraceStep step, java.util.Map.Entry entry)
QueryRecord
.
This method should record the corresponding latencies using QueryRecord.PartialResult.TraceStep.recordDuration(long)
.
Implementations are responsible for explicitly calling evaluateEntry()
method to perform the actual entry evaluation. Additionally, this method should return the result of the evaluateEntry call.
trace
in interface QueryRecorderFilter
ctx
- the contextstep
- the step used to record the evaluation costentry
- the entry to evaluateEntryFilter.evaluateEntry(Map.Entry)
protected static void explain(Filter filter, java.util.Map mapIndexes, java.util.Set setKeys, QueryRecord.PartialResult.ExplainStep step)
filter
- the filtermapIndexes
- a read-only map of available MapIndex objects, keyed by the associated ValueExtractorsetKeys
- the mutable set of keys that remain to be filteredstep
- the step used to record the execution costprotected static Filter trace(Filter filter, java.util.Map mapIndexes, java.util.Set setKeys, QueryRecord.PartialResult.TraceStep step)
filter
- the filtermapIndexes
- a read-only map of available MapIndex objects, keyed by the associated ValueExtractorsetKeys
- the mutable set of keys that remain to be filteredstep
- the step used to record the execution costFilter
object (which may be an EntryFilter
) that can be used to process the remaining keys, or null if no additional filter processing is necessaryprotected static boolean trace(Filter filter, java.util.Map.Entry entry, QueryRecord.PartialResult.TraceStep step)
filter
- the filterentry
- the entry to be evaluatedstep
- the step used to record the execution cost
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |