Package com.tangosol.util
Class SimpleQueryRecord.PartialResult.TraceStep
java.lang.Object
com.tangosol.util.SimpleQueryRecord.PartialResult.Step
com.tangosol.util.SimpleQueryRecord.PartialResult.AbstractRecordableStep
com.tangosol.util.SimpleQueryRecord.PartialResult.TraceStep
- All Implemented Interfaces:
ExternalizableLite
,PortableObject
,QueryRecord.PartialResult.RecordableStep
,QueryRecord.PartialResult.Step
,QueryRecord.PartialResult.TraceStep
,Serializable
- Enclosing class:
SimpleQueryRecord.PartialResult
public class SimpleQueryRecord.PartialResult.TraceStep
extends SimpleQueryRecord.PartialResult.AbstractRecordableStep
implements QueryRecord.PartialResult.TraceStep
Simple QueryRecord.PartialResult.TraceStep implementation.
- See Also:
-
Field Summary
Fields inherited from class com.tangosol.util.SimpleQueryRecord.PartialResult.AbstractRecordableStep
m_mapSteps
Fields inherited from class com.tangosol.util.SimpleQueryRecord.PartialResult.Step
m_cMillis, m_listSubSteps, m_nEfficiency, m_nSizeIn, m_nSizeOut, m_setIndexLookupRecords, m_sFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionensureStep
(Filter filter) Ensure an inner nested trace step for the given filter.void
recordDuration
(long cMillisElapsed) Record the time spent evaluating the filter or applying an index.void
recordPostFilterKeys
(int nSizeOut) Record the number of keys remaining after filter evaluation.Methods inherited from class com.tangosol.util.SimpleQueryRecord.PartialResult.AbstractRecordableStep
recordExtractor, recordPreFilterKeys
Methods inherited from class com.tangosol.util.SimpleQueryRecord.PartialResult.Step
getDuration, getEfficiency, getFilterDescription, getIndexLookupRecords, getPostFilterKeySetSize, getPreFilterKeySetSize, getSteps, isMatching, merge, readExternal, readExternal, writeExternal, writeExternal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.util.QueryRecord.PartialResult.RecordableStep
recordExtractor, recordPreFilterKeys
Methods inherited from interface com.tangosol.util.QueryRecord.PartialResult.Step
getDuration, getEfficiency, getFilterDescription, getIndexLookupRecords, getPostFilterKeySetSize, getPreFilterKeySetSize, getSteps
-
Constructor Details
-
TraceStep
Construct a TraceStep- Parameters:
filter
- the step filter
-
-
Method Details
-
recordPostFilterKeys
public void recordPostFilterKeys(int nSizeOut) Record the number of keys remaining after filter evaluation. This method may be called repeatedly on the same step instance during the scan phase of a query trace plan operation. Each call will add to the total recorded post-evaluation key set size for this step.During the scan phase of a query trace plan operation, each entry is evaluated against the filter individually. Each call to
trace
should record a key set count of1
and a result key set count offResult ? 1 : 0
wherefResult
is the result of a call toEntryFilter.evaluateEntry(Map.Entry)
.- Specified by:
recordPostFilterKeys
in interfaceQueryRecord.PartialResult.TraceStep
- Parameters:
nSizeOut
- the number of keys remaining after filter evaluation
-
recordDuration
public void recordDuration(long cMillisElapsed) Record the time spent evaluating the filter or applying an index. This method may be called repeatedly on the same step instance during the scan phase of a query trace plan operation. Calling this method repeatedly will add to the total duration recorded for this step.- Specified by:
recordDuration
in interfaceQueryRecord.PartialResult.TraceStep
- Parameters:
cMillisElapsed
- the number of milliseconds spent evaluating the filter
-
ensureStep
Ensure an inner nested trace step for the given filter. If there is no inner nested step associated with the given filter then a new step is created.- Specified by:
ensureStep
in interfaceQueryRecord.PartialResult.TraceStep
- Parameters:
filter
- the filter to associate the new step with- Returns:
- the inner nested step associated with the given filter
-