com.espertech.esper.epl.spec
Class FilterStreamSpecRaw

java.lang.Object
  extended by com.espertech.esper.epl.spec.StreamSpecBase
      extended by com.espertech.esper.epl.spec.FilterStreamSpecRaw
All Implemented Interfaces:
StreamSpec, StreamSpecRaw, MetaDefItem, java.io.Serializable

public class FilterStreamSpecRaw
extends StreamSpecBase
implements StreamSpecRaw, MetaDefItem, java.io.Serializable

Unvalided filter-based stream specification.

See Also:
Serialized Form

Constructor Summary
FilterStreamSpecRaw()
          Default ctor.
FilterStreamSpecRaw(FilterSpecRaw rawFilterSpec, ViewSpec[] viewSpecs, java.lang.String optionalStreamName, StreamSpecOptions streamSpecOptions)
          Ctor.
 
Method Summary
 StreamSpecCompiled compile(StatementContext context, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger)
          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.
static EventType resolveType(java.lang.String engineURI, java.lang.String eventName, EventAdapterService eventAdapterService, java.net.URI[] optionalResolutionURIs)
          Resolves a given event name to an event type.
 
Methods inherited from class com.espertech.esper.epl.spec.StreamSpecBase
getOptionalStreamName, getOptions, getViewSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.epl.spec.StreamSpec
getOptionalStreamName, getOptions, getViewSpecs
 

Constructor Detail

FilterStreamSpecRaw

public FilterStreamSpecRaw(FilterSpecRaw rawFilterSpec,
                           ViewSpec[] viewSpecs,
                           java.lang.String optionalStreamName,
                           StreamSpecOptions streamSpecOptions)
Ctor.

Parameters:
rawFilterSpec - is unvalidated filter specification
viewSpecs - is the view definition
optionalStreamName - is the stream name if supplied, or null if not supplied
streamSpecOptions - - additional options, such as unidirectional stream in a join

FilterStreamSpecRaw

public FilterStreamSpecRaw()
Default ctor.

Method Detail

getRawFilterSpec

public FilterSpecRaw getRawFilterSpec()
Returns the unvalided filter spec.

Returns:
filter def

compile

public StreamSpecCompiled compile(StatementContext context,
                                  java.util.Set<java.lang.String> eventTypeReferences,
                                  boolean isInsertInto,
                                  java.util.Collection<java.lang.Integer> assignedTypeNumberStack,
                                  boolean isJoin,
                                  boolean isContextDeclaration,
                                  boolean isOnTrigger)
                           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:
context - statement-level services
eventTypeReferences - event type names used by the statement
isInsertInto - true for insert-into
isJoin - indicates whether a join or not a join
isContextDeclaration - indicates whether declared as part of the context declarations, if any
Returns:
compiled stream
Throws:
ExprValidationException - to indicate validation errors

resolveType

public static EventType resolveType(java.lang.String engineURI,
                                    java.lang.String eventName,
                                    EventAdapterService eventAdapterService,
                                    java.net.URI[] optionalResolutionURIs)
                             throws ExprValidationException
Resolves a given event name to an event type.

Parameters:
eventName - is the name to resolve
eventAdapterService - for resolving event types
engineURI - the provider URI
optionalResolutionURIs - is URIs for resolving the event name against plug-inn event representations, if any
Returns:
event type
Throws:
ExprValidationException - if the info cannot be resolved

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com