Class ContextDescriptorInitiatedTerminated

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

public class ContextDescriptorInitiatedTerminated extends Object implements ContextDescriptor
Context dimension descriptor for a start-and-end temporal (single instance) or initiated-terminated (overlapping) context
See Also:
  • Constructor Details

    • ContextDescriptorInitiatedTerminated

      public ContextDescriptorInitiatedTerminated()
      Ctor.
    • ContextDescriptorInitiatedTerminated

      public ContextDescriptorInitiatedTerminated(ContextDescriptorCondition startCondition, ContextDescriptorCondition endCondition, boolean overlapping, List<Expression> optionalDistinctExpressions)
      Ctor.
      Parameters:
      startCondition - the condition that starts/initiates a context partition
      endCondition - the condition that ends/terminates a context partition
      overlapping - true for overlapping contexts
      optionalDistinctExpressions - list of distinct-value expressions, can be null
    • ContextDescriptorInitiatedTerminated

      public ContextDescriptorInitiatedTerminated(ContextDescriptorCondition startCondition, ContextDescriptorCondition endCondition, boolean overlapping)
      Ctor.
      Parameters:
      startCondition - the condition that starts/initiates a context partition
      endCondition - the condition that ends/terminates a context partition
      overlapping - true for overlapping contexts
  • Method Details

    • getInitCondition

      public ContextDescriptorCondition getInitCondition()
      Returns the condition that starts/initiates a context partition
      Returns:
      start condition
    • setStartCondition

      public void setStartCondition(ContextDescriptorCondition startCondition)
      Sets the condition that starts/initiates a context partition
      Parameters:
      startCondition - start condition
    • getTermCondition

      public ContextDescriptorCondition getTermCondition()
      Returns the condition that ends/terminates a context partition
      Returns:
      end condition
    • setEndCondition

      public void setEndCondition(ContextDescriptorCondition endCondition)
      Sets the condition that ends/terminates a context partition
      Parameters:
      endCondition - end condition
    • isOverlapping

      public boolean isOverlapping()
      Returns true for overlapping context, false for non-overlapping.
      Returns:
      overlap indicator
    • setOverlapping

      public void setOverlapping(boolean overlapping)
      Set to true for overlapping context, false for non-overlapping.
      Parameters:
      overlapping - overlap indicator
    • getOptionalDistinctExpressions

      public List<Expression> getOptionalDistinctExpressions()
      Returns the list of expressions providing distinct keys, if any
      Returns:
      distinct expressions
    • setOptionalDistinctExpressions

      public void setOptionalDistinctExpressions(List<Expression> optionalDistinctExpressions)
      Sets the list of expressions providing distinct keys, if any
      Parameters:
      optionalDistinctExpressions - distinct expressions
    • toEPL

      public void toEPL(StringWriter writer, EPStatementFormatter formatter)
      Description copied from interface: ContextDescriptor
      Format as EPL.
      Specified by:
      toEPL in interface ContextDescriptor
      Parameters:
      writer - output
      formatter - formatter