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, java.util.Map<EvalFactoryNode,java.lang.String> evalNodeExpressions, ViewSpec[] viewSpecs, java.lang.String optionalStreamName, StreamSpecOptions streamSpecOptions)
          Ctor.
 
Method Summary
 PatternStreamSpecCompiled compile(StatementContext context, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack)
          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)
           
 EvalFactoryNode getEvalFactoryNode()
          Returns the pattern expression evaluation node for the top pattern operator.
 
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,
                            java.util.Map<EvalFactoryNode,java.lang.String> evalNodeExpressions,
                            ViewSpec[] viewSpecs,
                            java.lang.String optionalStreamName,
                            StreamSpecOptions streamSpecOptions)
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)
                                  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
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)
                                  throws ExprValidationException
Throws:
ExprValidationException

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