net.esper.eql.expression
Class SelectExprEvalProcessor

java.lang.Object
  extended by net.esper.eql.expression.SelectExprEvalProcessor
All Implemented Interfaces:
SelectExprProcessor

public class SelectExprEvalProcessor
extends java.lang.Object
implements SelectExprProcessor

Processor for select-clause expressions that handles a list of selection items represented by expression nodes. Computes results based on matching events.


Constructor Summary
SelectExprEvalProcessor(java.util.List<SelectExprElement> selectionList, InsertIntoDesc insertIntoDesc, EventAdapterService eventAdapterService)
          Ctor.
 
Method Summary
 EventType getResultEventType()
          Returns the event type that represents the select-clause items.
 EventBean process(EventBean[] eventsPerStream)
          Computes the select-clause results and returns an event of the result event type that contains, in it's properties, the selected items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectExprEvalProcessor

public SelectExprEvalProcessor(java.util.List<SelectExprElement> selectionList,
                               InsertIntoDesc insertIntoDesc,
                               EventAdapterService eventAdapterService)
                        throws ExprValidationException
Ctor.

Parameters:
selectionList - - list of select-clause items
eventAdapterService - - service for generating events and handling event types
insertIntoDesc - - descriptor for insert-into clause contains column names overriding select clause names
Throws:
ExprValidationException - thrown if any of the expressions don't validate
Method Detail

process

public EventBean process(EventBean[] eventsPerStream)
Description copied from interface: SelectExprProcessor
Computes the select-clause results and returns an event of the result event type that contains, in it's properties, the selected items.

Specified by:
process in interface SelectExprProcessor
Returns:
event with properties containing selected items

getResultEventType

public EventType getResultEventType()
Description copied from interface: SelectExprProcessor
Returns the event type that represents the select-clause items.

Specified by:
getResultEventType in interface SelectExprProcessor
Returns:
event type representing select-clause items