net.esper.eql.spec
Class PatternStreamSpecRaw

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

public class PatternStreamSpecRaw
extends StreamSpecBase
implements StreamSpecRaw

Pattern specification in unvalidated, unoptimized form.


Constructor Summary
PatternStreamSpecRaw(EvalNode evalNode, 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
 EvalNode getEvalNode()
          Returns the pattern expression evaluation node for the top pattern operator.
protected static List<EvalFilterNode> recusiveFilterChildNodes(EvalNode currentNode)
          Searched recursivly for pattern evaluation filter nodes.
 
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

PatternStreamSpecRaw

public PatternStreamSpecRaw(EvalNode evalNode,
                            List<ViewSpec> viewSpecs,
                            String optionalStreamName)
Ctor.

Parameters:
evalNode - - pattern evaluation node representing pattern statement
viewSpecs - - specifies what view to use to derive data
optionalStreamName - - stream name, or null if none supplied
Method Detail

getEvalNode

public EvalNode getEvalNode()
Returns the pattern expression evaluation node for the top pattern operator.

Returns:
parent pattern expression node

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

recusiveFilterChildNodes

protected static List<EvalFilterNode> recusiveFilterChildNodes(EvalNode currentNode)
Searched recursivly for pattern evaluation filter nodes.

Parameters:
currentNode - is the root node
Returns:
list of filter nodes