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<SelectExprElementCompiledSpec> selectionList, List<SelectExprElementStreamCompiledSpec> selectedStreams, boolean isUsingWildcard, InsertIntoDesc insertIntoDesc, StreamTypeService typeService, EventAdapterService eventAdapterService)
          Returns the processor to use for a given select-clause.
protected static void verifyNameUniqueness(List<SelectExprElementCompiledSpec> selectionList, List<SelectExprElementStreamCompiledSpec> selectedStreams)
          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<SelectExprElementCompiledSpec> selectionList,
                                               List<SelectExprElementStreamCompiledSpec> selectedStreams,
                                               boolean isUsingWildcard,
                                               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
selectedStreams - - list of stream selectors (e.g. select alias.* from Event as alias)
isUsingWildcard - - true if the wildcard (*) occurs in the select clause
insertIntoDesc - - contains column names for the optional insert-into clause (if supplied)
typeService - - serves stream type information
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<SelectExprElementCompiledSpec> selectionList,
                                           List<SelectExprElementStreamCompiledSpec> selectedStreams)
                                    throws ExprValidationException
Verify that each given name occurs exactly one.

Parameters:
selectionList - is the list of select items to verify names
selectedStreams - - list of stream selectors (e.g. select alias.* from Event as alias)
Throws:
ExprValidationException - thrown if a name occured more then once

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