Class JoinSetComposerFAFImpl
java.lang.Object
com.espertech.esper.common.internal.epl.join.base.JoinSetComposerImpl
com.espertech.esper.common.internal.epl.join.base.JoinSetComposerFAFImpl
- All Implemented Interfaces:
JoinSetComposer
Implements the function to determine a join result set using tables/indexes and query strategy
instances for each stream.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.join.base.JoinSetComposerImpl
newResults, oldResults, queryStrategies, repositories
-
Constructor Summary
ConstructorDescriptionJoinSetComposerFAFImpl
(Map<TableLookupIndexReqKey, EventTable>[] repositories, QueryStrategy[] queryStrategies, boolean isPureSelfJoin, ExprEvaluatorContext exprEvaluatorContext, boolean joinRemoveStream, boolean outerJoins) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy stateful index tables, if any.void
init
(EventBean[][] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext) Provides initialization events per stream to composer to populate join indexes, if requiredjoin
(EventBean[][] newDataPerStream, EventBean[][] oldDataPerStream, ExprEvaluatorContext exprEvaluatorContext) Return join tuple result set from new data and old data for each stream.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.Methods inherited from class com.espertech.esper.common.internal.epl.join.base.JoinSetComposerImpl
accept, allowsInit, getQueryStrategies, getTables
-
Constructor Details
-
JoinSetComposerFAFImpl
public JoinSetComposerFAFImpl(Map<TableLookupIndexReqKey, EventTable>[] repositories, QueryStrategy[] queryStrategies, boolean isPureSelfJoin, ExprEvaluatorContext exprEvaluatorContext, boolean joinRemoveStream, boolean outerJoins)
-
-
Method Details
-
init
Description copied from interface:JoinSetComposer
Provides initialization events per stream to composer to populate join indexes, if required- Specified by:
init
in interfaceJoinSetComposer
- Overrides:
init
in classJoinSetComposerImpl
- Parameters:
eventsPerStream
- is an array of events for each stream, with null elements to indicate no events for a streamexprEvaluatorContext
- evaluator context
-
destroy
public void destroy()Description copied from interface:JoinSetComposer
Destroy stateful index tables, if any.- Specified by:
destroy
in interfaceJoinSetComposer
- Overrides:
destroy
in classJoinSetComposerImpl
-
join
public UniformPair<Set<MultiKeyArrayOfKeys<EventBean>>> join(EventBean[][] newDataPerStream, EventBean[][] oldDataPerStream, ExprEvaluatorContext exprEvaluatorContext) Description copied from interface:JoinSetComposer
Return join tuple result set from new data and old data for each stream.- Specified by:
join
in interfaceJoinSetComposer
- Overrides:
join
in classJoinSetComposerImpl
- Parameters:
newDataPerStream
- - for each stream the event array (can be null).oldDataPerStream
- - for each stream the event array (can be null).exprEvaluatorContext
- expression evaluation context- Returns:
- join tuples
-
staticJoin
Description copied from interface:JoinSetComposer
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.- Specified by:
staticJoin
in interfaceJoinSetComposer
- Overrides:
staticJoin
in classJoinSetComposerImpl
- Returns:
- static join result
-