public class PollResultIndexingStrategyIndexCoerce extends java.lang.Object implements PollResultIndexingStrategy
Constructor and Description |
---|
PollResultIndexingStrategyIndexCoerce(int streamNum,
EventType eventType,
java.lang.String[] propertyNames,
java.lang.Class[] coercionTypes)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventTable[] |
index(java.util.List<EventBean> pollResult,
boolean isActiveCache,
StatementContext statementContext)
Build and index of a poll result.
|
java.lang.String |
toQueryPlan() |
public PollResultIndexingStrategyIndexCoerce(int streamNum, EventType eventType, java.lang.String[] propertyNames, java.lang.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(java.util.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 java.lang.String toQueryPlan()
toQueryPlan
in interface PollResultIndexingStrategy