net.esper.eql.core
Class SelectExprProcessorFactory

java.lang.Object
  extended by net.esper.eql.core.SelectExprProcessorFactory

public class SelectExprProcessorFactory
extends Object

Factory for select expression processors.


Constructor Summary
SelectExprProcessorFactory()
           
 
Method Summary
static SelectExprProcessor getProcessor(List<SelectExprElementNamedSpec> selectionList, InsertIntoDesc insertIntoDesc, StreamTypeService typeService, EventAdapterService eventAdapterService)
          Returns the processor to use for a given select-clause.
protected static void verifyNameUniqueness(List<SelectExprElementNamedSpec> selectionList)
          Verify that each given name occurs exactly one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectExprProcessorFactory

public SelectExprProcessorFactory()
Method Detail

getProcessor

public static SelectExprProcessor getProcessor(List<SelectExprElementNamedSpec> selectionList,
                                               InsertIntoDesc insertIntoDesc,
                                               StreamTypeService typeService,
                                               EventAdapterService eventAdapterService)
                                        throws ExprValidationException
Returns the processor to use for a given select-clause.

Parameters:
selectionList - - the list of select clause elements/items, which are expected to have been validated
typeService - - serves stream type information
insertIntoDesc - - contains column names for the optional insert-into clause (if supplied)
eventAdapterService - - for generating wrapper instances for events
Returns:
select-clause expression processor
Throws:
ExprValidationException - to indicate the select expression cannot be validated

verifyNameUniqueness

protected static void verifyNameUniqueness(List<SelectExprElementNamedSpec> selectionList)
                                    throws ExprValidationException
Verify that each given name occurs exactly one.

Parameters:
selectionList - is the list of select items to verify names
Throws:
ExprValidationException - thrown if a name occured more then once