com.espertech.esper.epl.core
Class BindProcessor

java.lang.Object
  extended by com.espertech.esper.epl.core.BindProcessor

public class BindProcessor
extends java.lang.Object

Works in conjunction with SelectExprResultProcessor to present a result as an object array for 'natural' delivery.


Constructor Summary
BindProcessor(SelectClauseElementCompiled[] selectionList, EventType[] typesPerStream, java.lang.String[] streamNames, TableService tableService)
          Ctor.
 
Method Summary
 java.lang.String[] getColumnNamesAssigned()
          Returns the column names of select-clause expressions.
 java.lang.Class[] getExpressionTypes()
          Returns the expression types generated by the select-clause expressions.
 java.lang.Object[] process(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
          Process select expressions into columns for native dispatch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindProcessor

public BindProcessor(SelectClauseElementCompiled[] selectionList,
                     EventType[] typesPerStream,
                     java.lang.String[] streamNames,
                     TableService tableService)
              throws ExprValidationException
Ctor.

Parameters:
selectionList - the select clause
typesPerStream - the event types per stream
streamNames - the stream names
Throws:
ExprValidationException - when the validation of the select clause failed
Method Detail

process

public java.lang.Object[] process(EventBean[] eventsPerStream,
                                  boolean isNewData,
                                  ExprEvaluatorContext exprEvaluatorContext)
Process select expressions into columns for native dispatch.

Parameters:
eventsPerStream - each stream's events
isNewData - true for new events
exprEvaluatorContext - context for expression evaluatiom
Returns:
object array with select-clause results

getExpressionTypes

public java.lang.Class[] getExpressionTypes()
Returns the expression types generated by the select-clause expressions.

Returns:
types

getColumnNamesAssigned

public java.lang.String[] getColumnNamesAssigned()
Returns the column names of select-clause expressions.

Returns:
column names

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com