com.espertech.esper.epl.join.pollindex
Class PollResultIndexingStrategyComposite

java.lang.Object
  extended by com.espertech.esper.epl.join.pollindex.PollResultIndexingStrategyComposite
All Implemented Interfaces:
PollResultIndexingStrategy

public class PollResultIndexingStrategyComposite
extends java.lang.Object
implements PollResultIndexingStrategy

Strategy for building an index out of poll-results knowing the properties to base the index on.


Constructor Summary
PollResultIndexingStrategyComposite(int streamNum, EventType eventType, java.lang.String[] indexPropertiesJoin, java.lang.Class[] keyCoercionTypes, java.lang.String[] rangePropertiesJoin, java.lang.Class[] rangeCoercionTypes)
          Ctor.
 
Method Summary
 EventTable[] index(java.util.List<EventBean> pollResult, boolean isActiveCache)
          Build and index of a poll result.
 java.lang.String toQueryPlan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollResultIndexingStrategyComposite

public PollResultIndexingStrategyComposite(int streamNum,
                                           EventType eventType,
                                           java.lang.String[] indexPropertiesJoin,
                                           java.lang.Class[] keyCoercionTypes,
                                           java.lang.String[] rangePropertiesJoin,
                                           java.lang.Class[] rangeCoercionTypes)
Ctor.

Parameters:
streamNum - is the stream number of the indexed stream
eventType - is the event type of the indexed stream
Method Detail

index

public EventTable[] index(java.util.List<EventBean> pollResult,
                          boolean isActiveCache)
Description copied from interface: PollResultIndexingStrategy
Build and index of a poll result.

Specified by:
index in interface PollResultIndexingStrategy
Parameters:
pollResult - result of a poll operation
isActiveCache - true to indicate that caching is active and therefore index building makes sense as the index structure is not a throw-away.
Returns:
indexed collection of poll results

toQueryPlan

public java.lang.String toQueryPlan()
Specified by:
toQueryPlan in interface PollResultIndexingStrategy

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com