|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.join.base.JoinSetComposerImpl
public class JoinSetComposerImpl
Implements the function to determine a join result set using tables/indexes and query strategy instances for each stream.
Field Summary | |
---|---|
protected java.util.Set<MultiKey<EventBean>> |
newResults
|
protected java.util.Set<MultiKey<EventBean>> |
oldResults
|
protected QueryStrategy[] |
queryStrategies
|
protected EventTable[][] |
repositories
|
Constructor Summary | |
---|---|
JoinSetComposerImpl(boolean allowInitIndex,
java.util.Map<TableLookupIndexReqKey,EventTable>[] repositories,
QueryStrategy[] queryStrategies,
boolean isPureSelfJoin,
ExprEvaluatorContext exprEvaluatorContext,
boolean joinRemoveStream)
Ctor. |
Method Summary | |
---|---|
boolean |
allowsInit()
Returns true whether initialization events per stream to populate join indexes can be processed (init method). |
void |
destroy()
Destroy stateful index tables, if any. |
protected QueryStrategy[] |
getQueryStrategies()
Returns query strategies. |
protected EventTable[][] |
getTables()
Returns tables. |
void |
init(EventBean[][] eventsPerStream)
Provides initialization events per stream to composer to populate join indexes, if required |
UniformPair<java.util.Set<MultiKey<EventBean>>> |
join(EventBean[][] newDataPerStream,
EventBean[][] oldDataPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Return join tuple result set from new data and old data for each stream. |
java.util.Set<MultiKey<EventBean>> |
staticJoin()
For use in iteration over join statements, this must build a join tuple result set from all events in indexes, executing query strategies for each. |
void |
visitIndexes(StatementAgentInstancePostLoadIndexVisitor visitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final EventTable[][] repositories
protected final QueryStrategy[] queryStrategies
protected java.util.Set<MultiKey<EventBean>> oldResults
protected java.util.Set<MultiKey<EventBean>> newResults
Constructor Detail |
---|
public JoinSetComposerImpl(boolean allowInitIndex, java.util.Map<TableLookupIndexReqKey,EventTable>[] repositories, QueryStrategy[] queryStrategies, boolean isPureSelfJoin, ExprEvaluatorContext exprEvaluatorContext, boolean joinRemoveStream)
repositories
- - for each stream an array of (indexed/unindexed) tables for lookup.queryStrategies
- - for each stream a strategy to execute the joinisPureSelfJoin
- - for self-join onlyexprEvaluatorContext
- expression evaluation contextMethod Detail |
---|
public boolean allowsInit()
JoinSetComposer
allowsInit
in interface JoinSetComposer
public void init(EventBean[][] eventsPerStream)
JoinSetComposer
init
in interface JoinSetComposer
eventsPerStream
- is an array of events for each stream, with null elements to indicate no events for a streampublic void destroy()
JoinSetComposer
destroy
in interface JoinSetComposer
public UniformPair<java.util.Set<MultiKey<EventBean>>> join(EventBean[][] newDataPerStream, EventBean[][] oldDataPerStream, ExprEvaluatorContext exprEvaluatorContext)
JoinSetComposer
join
in interface JoinSetComposer
newDataPerStream
- - for each stream the event array (can be null).oldDataPerStream
- - for each stream the event array (can be null).exprEvaluatorContext
- expression evaluation context
protected EventTable[][] getTables()
protected QueryStrategy[] getQueryStrategies()
public java.util.Set<MultiKey<EventBean>> staticJoin()
JoinSetComposer
staticJoin
in interface JoinSetComposer
public void visitIndexes(StatementAgentInstancePostLoadIndexVisitor visitor)
visitIndexes
in interface JoinSetComposer
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |