Class QueryRecorder<K,V>

java.lang.Object
com.tangosol.util.aggregator.QueryRecorder<K,V>
Type Parameters:
K - the type of the Map entry keys
V - the type of the Map entry values
All Implemented Interfaces:
ExternalizableLite, PortableObject, InvocableMap.EntryAggregator<K,V,QueryRecord>, InvocableMap.StreamingAggregator<K,V,QueryRecord.PartialResult,QueryRecord>, Serializable

This aggregator is used to produce a QueryRecord object that contains an estimated or actual cost of the query execution for a given filter.

For example, the following code will print a QueryRecord, containing the estimated query cost and corresponding execution steps.

   QueryRecorder agent  = new QueryRecorder(RecordType.EXPLAIN);
   QueryRecord   record = (QueryRecord) cache.aggregate(filter, agent);
   System.out.println(record);
 
Author:
tb 2011.05.26
See Also: