Class JoinSetComposerStreamToWinImpl

java.lang.Object
com.espertech.esper.common.internal.epl.join.base.JoinSetComposerStreamToWinImpl
All Implemented Interfaces:
JoinSetComposer

public class JoinSetComposerStreamToWinImpl extends Object implements JoinSetComposer
Implements the function to determine a join result for a unidirectional stream-to-window joins, in which a single stream's events are ever only evaluated using a query strategy.
  • Constructor Details

    • JoinSetComposerStreamToWinImpl

      public JoinSetComposerStreamToWinImpl(boolean allowInitIndex, Map<TableLookupIndexReqKey,EventTable>[] repositories, boolean isPureSelfJoin, int streamNumber, QueryStrategy queryStrategy, boolean[] selfJoinRepositoryResets)
  • Method Details

    • allowsInit

      public boolean allowsInit()
      Description copied from interface: JoinSetComposer
      Returns true whether initialization events per stream to populate join indexes can be processed (init method).
      Specified by:
      allowsInit in interface JoinSetComposer
      Returns:
      whether init is supported
    • init

      public void init(EventBean[][] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
      Description copied from interface: JoinSetComposer
      Provides initialization events per stream to composer to populate join indexes, if required
      Specified by:
      init in interface JoinSetComposer
      Parameters:
      eventsPerStream - is an array of events for each stream, with null elements to indicate no events for a stream
      exprEvaluatorContext - evaluator context
    • destroy

      public void destroy()
      Description copied from interface: JoinSetComposer
      Destroy stateful index tables, if any.
      Specified by:
      destroy in interface JoinSetComposer
    • 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 interface JoinSetComposer
      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

      public Set<MultiKeyArrayOfKeys<EventBean>> 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 interface JoinSetComposer
      Returns:
      static join result
    • accept

      public void accept(EventTableVisitor visitor)
      Specified by:
      accept in interface JoinSetComposer