com.espertech.esper.client.soda
Class ContextDescriptorConditionPattern

java.lang.Object
  extended by com.espertech.esper.client.soda.ContextDescriptorConditionPattern
All Implemented Interfaces:
ContextDescriptorCondition, java.io.Serializable

public class ContextDescriptorConditionPattern
extends java.lang.Object
implements ContextDescriptorCondition

Context condition that start/initiated or ends/terminates context partitions based on a pattern.

See Also:
Serialized Form

Constructor Summary
ContextDescriptorConditionPattern()
          Ctor.
ContextDescriptorConditionPattern(PatternExpr pattern, boolean inclusive, boolean now)
          Ctor.
 
Method Summary
 PatternExpr getPattern()
          Returns the pattern expression.
 boolean isInclusive()
          Return the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.
 boolean isNow()
          Returns "now" indicator
 void setInclusive(boolean inclusive)
          Set the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.
 void setNow(boolean now)
          Sets "now" indicator
 void setPattern(PatternExpr pattern)
          Sets the pattern expression.
 void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          Populate the EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextDescriptorConditionPattern

public ContextDescriptorConditionPattern()
Ctor.


ContextDescriptorConditionPattern

public ContextDescriptorConditionPattern(PatternExpr pattern,
                                         boolean inclusive,
                                         boolean now)
Ctor.

Parameters:
pattern - pattern expression
inclusive - if the events of the pattern should be included in the contextual statements
now - indicator whether "now"
Method Detail

getPattern

public PatternExpr getPattern()
Returns the pattern expression.

Returns:
pattern

setPattern

public void setPattern(PatternExpr pattern)
Sets the pattern expression.

Parameters:
pattern - to set

isInclusive

public boolean isInclusive()
Return the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.

Returns:
inclusive flag

setInclusive

public void setInclusive(boolean inclusive)
Set the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.

Parameters:
inclusive - inclusive flag

isNow

public boolean isNow()
Returns "now" indicator

Returns:
"now" indicator

setNow

public void setNow(boolean now)
Sets "now" indicator

Parameters:
now - "now" indicator

toEPL

public void toEPL(java.io.StringWriter writer,
                  EPStatementFormatter formatter)
Description copied from interface: ContextDescriptorCondition
Populate the EPL.

Specified by:
toEPL in interface ContextDescriptorCondition
Parameters:
writer - output
formatter - formatter

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