Class ContextDescriptorConditionTimePeriod

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

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

    • ContextDescriptorConditionTimePeriod

      public ContextDescriptorConditionTimePeriod()
      Ctor.
    • ContextDescriptorConditionTimePeriod

      public ContextDescriptorConditionTimePeriod(Expression timePeriod, boolean now)
      Ctor.
      Parameters:
      timePeriod - time period expression
      now - indicator whether "now"
  • Method Details

    • getTimePeriod

      public Expression getTimePeriod()
      Returns the time period expression
      Returns:
      time period expression
    • setTimePeriod

      public void setTimePeriod(Expression timePeriod)
      Sets the time period expression
      Parameters:
      timePeriod - time period expression
    • 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(StringWriter writer, EPStatementFormatter formatter)
      Description copied from interface: ContextDescriptorCondition
      Populate the EPL.
      Specified by:
      toEPL in interface ContextDescriptorCondition
      Parameters:
      writer - output
      formatter - formatter