Class ContextDescriptorConditionPattern

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

public class ContextDescriptorConditionPattern extends Object implements ContextDescriptorCondition
Context condition that start/initiated or ends/terminates context partitions based on a pattern.
See Also:
  • Constructor Details

    • ContextDescriptorConditionPattern

      public ContextDescriptorConditionPattern()
      Ctor.
    • ContextDescriptorConditionPattern

      public ContextDescriptorConditionPattern(PatternExpr pattern, boolean inclusive, boolean now, String asName)
      Ctor.
      Parameters:
      pattern - pattern expression
      inclusive - if the events of the pattern should be included in the contextual statements
      now - indicator whether "now"
      asName - stream name, or null if not provided
  • Method Details

    • 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
    • getAsName

      public String getAsName()
      Returns the stream name assigned using the "as" keyword, or null if not provided
      Returns:
      as-name
    • setAsName

      public void setAsName(String asName)
      Sets the stream name assigned using the "as" keyword, or null if not provided
      Parameters:
      asName - as-name
    • toEPL

      public void toEPL(StringWriter writer, EPStatementFormatter formatter)
      Description copied from interface: ContextDescriptorCondition
      Populate the EPL.
      Specified by:
      toEPL in interface ContextDescriptorCondition
      Parameters:
      writer - output
      formatter - formatter