Class TableLookupExecNode

java.lang.Object
com.espertech.esper.common.internal.epl.join.strategy.ExecNode
com.espertech.esper.common.internal.epl.join.exec.base.TableLookupExecNode
Direct Known Subclasses:
TableLookupExecNodeTableLocking

public class TableLookupExecNode extends ExecNode
Execution node for lookup in a table.
  • Field Details

  • Constructor Details

    • TableLookupExecNode

      public TableLookupExecNode(int indexedStream, JoinExecTableLookupStrategy lookupStrategy)
      Ctor.
      Parameters:
      indexedStream - - stream indexed for lookup
      lookupStrategy - - strategy to use for lookup (full table/indexed)
  • Method Details

    • getLookupStrategy

      public JoinExecTableLookupStrategy getLookupStrategy()
      Returns strategy for lookup.
      Returns:
      lookup strategy
    • process

      public void process(EventBean lookupEvent, EventBean[] prefillPath, Collection<EventBean[]> result, ExprEvaluatorContext exprEvaluatorContext)
      Description copied from class: ExecNode
      Process single event using the prefill events to compile lookup results.
      Specified by:
      process in class ExecNode
      Parameters:
      lookupEvent - - event to look up for or query for
      prefillPath - - set of events currently in the example tuple to serve as a prototype for result rows.
      result - is the list of tuples to add a result row to
      exprEvaluatorContext - context for expression evaluation
    • processResults

      protected void processResults(EventBean[] prefillPath, Collection<EventBean[]> result, Set<EventBean> joinedEvents)
    • getIndexedStream

      public int getIndexedStream()
      Returns target stream for lookup.
      Returns:
      indexed stream
    • print

      public void print(IndentWriter writer)
      Description copied from class: ExecNode
      Output the execution strategy.
      Specified by:
      print in class ExecNode
      Parameters:
      writer - to output to