com.espertech.esper.epl.spec
Class PatternStreamSpecCompiled

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

public class PatternStreamSpecCompiled
extends StreamSpecBase
implements StreamSpecCompiled

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.

See Also:
Serialized Form

Constructor Summary
PatternStreamSpecCompiled(EvalNode evalNode, Map<String,Pair<EventType,String>> taggedEventTypes, List<ViewSpec> viewSpecs, String optionalStreamName, boolean isUnidirectional)
          Ctor.
 
Method Summary
 EvalNode getEvalNode()
          Returns the pattern expression evaluation node for the top pattern operator.
 Map<String,Pair<EventType,String>> getTaggedEventTypes()
          Returns event types tagged in the pattern expression.
 
Methods inherited from class com.espertech.esper.epl.spec.StreamSpecBase
getOptionalStreamName, getViewSpecs, isUnidirectional
 
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, getViewSpecs, isUnidirectional
 

Constructor Detail

PatternStreamSpecCompiled

public PatternStreamSpecCompiled(EvalNode evalNode,
                                 Map<String,Pair<EventType,String>> taggedEventTypes,
                                 List<ViewSpec> viewSpecs,
                                 String optionalStreamName,
                                 boolean isUnidirectional)
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
isUnidirectional - - true to indicate a unidirectional stream in a join, applicable for joins
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,Pair<EventType,String>> getTaggedEventTypes()
Returns event types tagged in the pattern expression.

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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com