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, java.io.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

Field Summary
 
Fields inherited from interface com.espertech.esper.epl.spec.StreamSpecCompiled
EMPTY_STREAM_ARRAY
 
Constructor Summary
PatternStreamSpecCompiled(EvalFactoryNode evalFactoryNode, java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> taggedEventTypes, java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> arrayEventTypes, java.util.LinkedHashSet<java.lang.String> allTags, ViewSpec[] viewSpecs, java.lang.String optionalStreamName, StreamSpecOptions streamSpecOptions, boolean suppressSameEventMatches, boolean discardPartialsOnMatch)
          Ctor.
 
Method Summary
 java.util.LinkedHashSet<java.lang.String> getAllTags()
           
 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getArrayEventTypes()
          Returns event types tagged in the pattern expression under a repeat-operator.
 EvalFactoryNode getEvalFactoryNode()
          Returns the pattern expression evaluation node for the top pattern operator.
 MatchedEventMapMeta getMatchedEventMapMeta()
           
 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getTaggedEventTypes()
          Returns event types tagged in the pattern expression.
 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

PatternStreamSpecCompiled

public PatternStreamSpecCompiled(EvalFactoryNode evalFactoryNode,
                                 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> taggedEventTypes,
                                 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> arrayEventTypes,
                                 java.util.LinkedHashSet<java.lang.String> allTags,
                                 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
taggedEventTypes - - event tags and their types as specified in the pattern, copied to allow original collection to change
arrayEventTypes - - event tags and their types as specified in the pattern for any repeat-expressions that generate an array of events
optionalStreamName - - stream name, or null if none supplied
streamSpecOptions - - additional stream options such as unidirectional stream in a join, applicable for joins
Method Detail

getEvalFactoryNode

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

Returns:
parent pattern expression node

getTaggedEventTypes

public java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getTaggedEventTypes()
Returns event types tagged in the pattern expression.

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

getArrayEventTypes

public java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> getArrayEventTypes()
Returns event types tagged in the pattern expression under a repeat-operator.

Returns:
map of tag and event type tagged in pattern expression, repeated an thus producing array events

getMatchedEventMapMeta

public MatchedEventMapMeta getMatchedEventMapMeta()

getAllTags

public java.util.LinkedHashSet<java.lang.String> getAllTags()

isSuppressSameEventMatches

public boolean isSuppressSameEventMatches()

isDiscardPartialsOnMatch

public boolean isDiscardPartialsOnMatch()

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