net.esper.eql.join
Class PollResultIndexingStrategyIndexCoerce

java.lang.Object
  extended by net.esper.eql.join.PollResultIndexingStrategyIndexCoerce
All Implemented Interfaces:
PollResultIndexingStrategy

public class PollResultIndexingStrategyIndexCoerce
extends Object
implements PollResultIndexingStrategy

Strategy for building an index out of poll-results knowing the properties to base the index on, and their coercion types.


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

Constructor Detail

PollResultIndexingStrategyIndexCoerce

public PollResultIndexingStrategyIndexCoerce(int streamNum,
                                             EventType eventType,
                                             String[] propertyNames,
                                             Class[] coercionTypes)
Ctor.

Parameters:
streamNum - is the stream number of the indexed stream
eventType - is the event type of the indexed stream
propertyNames - is the property names to be indexed
coercionTypes - is the types to coerce to for keys and values
Method Detail

index

public EventTable index(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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com