com.espertech.esper.epl.core
Class BindProcessor

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

public class BindProcessor
extends Object

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


Constructor Summary
BindProcessor(List<SelectClauseElementCompiled> selectionList, EventType[] typesPerStream, String[] streamNames)
          Ctor.
 
Method Summary
 String[] getColumnNamesAssigned()
          Returns the column names of select-clause expressions.
 Class[] getExpressionTypes()
          Returns the expression types generated by the select-clause expressions.
 Object[] process(EventBean[] eventsPerStream, boolean isNewData)
          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(List<SelectClauseElementCompiled> selectionList,
                     EventType[] typesPerStream,
                     String[] streamNames)
              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 Object[] process(EventBean[] eventsPerStream,
                        boolean isNewData)
Process select expressions into columns for native dispatch.

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

getExpressionTypes

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

Returns:
types

getColumnNamesAssigned

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

Returns:
column names

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com