net.esper.eql.spec
Class PatternStreamSpec

java.lang.Object
  extended by net.esper.eql.spec.StreamSpec
      extended by net.esper.eql.spec.PatternStreamSpec

public class PatternStreamSpec
extends StreamSpec

Specification for building an event stream out of a pattern statement and views staggered onto the pattern statement.

The pattern statement is represented by the top EvalNode evaluation node. A pattern statement contains tagged events (i.e. a=A -> b=B). Thus the resulting event type is has properties "a" and "b" of the type of A and B.


Constructor Summary
PatternStreamSpec(EvalNode evalNode, Map<String,EventType> taggedEventTypes, List<ViewSpec> viewSpecs, String optionalStreamName)
          Ctor.
 
Method Summary
 EvalNode getEvalNode()
          Returns the pattern expression evaluation node for the top pattern operator.
 Map<String,EventType> getTaggedEventTypes()
          Returns event types tagged in the pattern expression.
 
Methods inherited from class net.esper.eql.spec.StreamSpec
getOptionalStreamName, getViewSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternStreamSpec

public PatternStreamSpec(EvalNode evalNode,
                         Map<String,EventType> taggedEventTypes,
                         List<ViewSpec> viewSpecs,
                         String optionalStreamName)
Ctor.

Parameters:
evalNode - - pattern evaluation node representing pattern statement
viewSpecs - - specifies what view to use to derive data
taggedEventTypes - - event tags and their types as specified in the pattern, copied to allow original collection to change
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

getTaggedEventTypes

public Map<String,EventType> getTaggedEventTypes()
Returns event types tagged in the pattern expression.

Returns:
map of tag and event type tagged in pattern expression