com.espertech.esper.epl.spec
Class PatternStreamSpecRaw

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

public class PatternStreamSpecRaw
extends StreamSpecBase
implements StreamSpecRaw

Pattern specification in unvalidated, unoptimized form.

See Also:
Serialized Form

Nested Class Summary
static class PatternStreamSpecRaw.FilterForFilterFactoryNodes
           
 
Constructor Summary
PatternStreamSpecRaw(EvalFactoryNode evalFactoryNode, ViewSpec[] viewSpecs, java.lang.String optionalStreamName, StreamSpecOptions streamSpecOptions, boolean suppressSameEventMatches, boolean discardPartialsOnMatch)
          Ctor.
 
Method Summary
 PatternStreamSpecCompiled 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
 PatternStreamSpecCompiled compile(StatementContext context, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack, MatchEventSpec priorTags, java.util.Set<java.lang.String> priorAllTags, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger)
           
 EvalFactoryNode getEvalFactoryNode()
          Returns the pattern expression evaluation node for the top pattern operator.
 boolean isDiscardPartialsOnMatch()
           
 boolean isSuppressSameEventMatches()
           
 
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

PatternStreamSpecRaw

public PatternStreamSpecRaw(EvalFactoryNode evalFactoryNode,
                            ViewSpec[] viewSpecs,
                            java.lang.String optionalStreamName,
                            StreamSpecOptions streamSpecOptions,
                            boolean suppressSameEventMatches,
                            boolean discardPartialsOnMatch)
Ctor.

Parameters:
evalFactoryNode - - pattern evaluation node representing pattern statement
viewSpecs - - specifies what view to use to derive data
optionalStreamName - - stream name, or null if none supplied
streamSpecOptions - - additional options, such as unidirectional stream in a join
Method Detail

getEvalFactoryNode

public EvalFactoryNode getEvalFactoryNode()
Returns the pattern expression evaluation node for the top pattern operator.

Returns:
parent pattern expression node

compile

public PatternStreamSpecCompiled 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

compile

public PatternStreamSpecCompiled compile(StatementContext context,
                                         java.util.Set<java.lang.String> eventTypeReferences,
                                         boolean isInsertInto,
                                         java.util.Collection<java.lang.Integer> assignedTypeNumberStack,
                                         MatchEventSpec priorTags,
                                         java.util.Set<java.lang.String> priorAllTags,
                                         boolean isJoin,
                                         boolean isContextDeclaration,
                                         boolean isOnTrigger)
                                  throws ExprValidationException
Throws:
ExprValidationException

isSuppressSameEventMatches

public boolean isSuppressSameEventMatches()

isDiscardPartialsOnMatch

public boolean isDiscardPartialsOnMatch()

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