net.esper.eql.spec
Class FilterStreamSpecRaw

java.lang.Object
  extended by net.esper.eql.spec.StreamSpecBase
      extended by net.esper.eql.spec.FilterStreamSpecRaw
All Implemented Interfaces:
StreamSpec, StreamSpecRaw, MetaDefItem

public class FilterStreamSpecRaw
extends StreamSpecBase
implements StreamSpecRaw, MetaDefItem

Unvalided filter-based stream specification.


Constructor Summary
FilterStreamSpecRaw()
          Default ctor.
FilterStreamSpecRaw(FilterSpecRaw rawFilterSpec, List<ViewSpec> viewSpecs, String optionalStreamName)
          Ctor.
 
Method Summary
 StreamSpecCompiled compile(EventAdapterService eventAdapterService, AutoImportService autoImportService)
          Compiles a raw stream specification consisting event type information and filter expressions to an validated, optimized form for use with filter service
 FilterSpecRaw getRawFilterSpec()
          Returns the unvalided filter spec.
protected static EventType resolveType(String eventName, EventAdapterService eventAdapterService)
          Resolves a given event alias to an event type.
 
Methods inherited from class net.esper.eql.spec.StreamSpecBase
getOptionalStreamName, getViewSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.esper.eql.spec.StreamSpec
getOptionalStreamName, getViewSpecs
 

Constructor Detail

FilterStreamSpecRaw

public FilterStreamSpecRaw(FilterSpecRaw rawFilterSpec,
                           List<ViewSpec> viewSpecs,
                           String optionalStreamName)
Ctor.

Parameters:
rawFilterSpec - is unvalidated filter specification
viewSpecs - is the view definition
optionalStreamName - is the stream name if supplied, or null if not supplied

FilterStreamSpecRaw

public FilterStreamSpecRaw()
Default ctor.

Method Detail

getRawFilterSpec

public FilterSpecRaw getRawFilterSpec()
Returns the unvalided filter spec.

Returns:
filter def

compile

public StreamSpecCompiled compile(EventAdapterService eventAdapterService,
                                  AutoImportService autoImportService)
                           throws ExprValidationException
Description copied from interface: StreamSpecRaw
Compiles a raw stream specification consisting event type information and filter expressions to an validated, optimized form for use with filter service

Specified by:
compile in interface StreamSpecRaw
Parameters:
eventAdapterService - supplies type information
autoImportService - for resolving imports
Returns:
compiled stream
Throws:
ExprValidationException - to indicate validation errors

resolveType

protected static EventType resolveType(String eventName,
                                       EventAdapterService eventAdapterService)
                                throws ExprValidationException
Resolves a given event alias to an event type.

Parameters:
eventName - is the alias to resolve
eventAdapterService - for resolving event types
Returns:
event type
Throws:
ExprValidationException - if the info cannot be resolved