public class PollResultIndexingStrategyIndexCoerce extends Object implements PollResultIndexingStrategy
Constructor and Description |
---|
PollResultIndexingStrategyIndexCoerce(int streamNum,
EventType eventType,
String[] propertyNames,
Class[] coercionTypes)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventTable[] |
index(List<EventBean> pollResult,
boolean isActiveCache,
StatementContext statementContext)
Build and index of a poll result.
|
String |
toQueryPlan() |
public PollResultIndexingStrategyIndexCoerce(int streamNum, EventType eventType, String[] propertyNames, Class[] coercionTypes)
streamNum
- is the stream number of the indexed streameventType
- is the event type of the indexed streampropertyNames
- is the property names to be indexedcoercionTypes
- is the types to coerce to for keys and valuespublic EventTable[] index(List<EventBean> pollResult, boolean isActiveCache, StatementContext statementContext)
PollResultIndexingStrategy
index
in interface PollResultIndexingStrategy
pollResult
- result of a poll operationisActiveCache
- true to indicate that caching is active and therefore index building makes sense as
the index structure is not a throw-away.statementContext
- statement contextpublic String toQueryPlan()
toQueryPlan
in interface PollResultIndexingStrategy