Class ContextDescriptorInitiatedTerminated
java.lang.Object
com.espertech.esper.common.client.soda.ContextDescriptorInitiatedTerminated
- All Implemented Interfaces:
ContextDescriptor
,Serializable
Context dimension descriptor for a start-and-end temporal (single instance) or initiated-terminated (overlapping) context
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ContextDescriptorInitiatedTerminated
(ContextDescriptorCondition startCondition, ContextDescriptorCondition endCondition, boolean overlapping) Ctor.ContextDescriptorInitiatedTerminated
(ContextDescriptorCondition startCondition, ContextDescriptorCondition endCondition, boolean overlapping, List<Expression> optionalDistinctExpressions) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the condition that starts/initiates a context partitionReturns the list of expressions providing distinct keys, if anyReturns the condition that ends/terminates a context partitionboolean
Returns true for overlapping context, false for non-overlapping.void
setEndCondition
(ContextDescriptorCondition endCondition) Sets the condition that ends/terminates a context partitionvoid
setOptionalDistinctExpressions
(List<Expression> optionalDistinctExpressions) Sets the list of expressions providing distinct keys, if anyvoid
setOverlapping
(boolean overlapping) Set to true for overlapping context, false for non-overlapping.void
setStartCondition
(ContextDescriptorCondition startCondition) Sets the condition that starts/initiates a context partitionvoid
toEPL
(StringWriter writer, EPStatementFormatter formatter) Format as EPL.
-
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 partitionendCondition
- the condition that ends/terminates a context partitionoverlapping
- true for overlapping contextsoptionalDistinctExpressions
- 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 partitionendCondition
- the condition that ends/terminates a context partitionoverlapping
- true for overlapping contexts
-
-
Method Details
-
getInitCondition
Returns the condition that starts/initiates a context partition- Returns:
- start condition
-
setStartCondition
Sets the condition that starts/initiates a context partition- Parameters:
startCondition
- start condition
-
getTermCondition
Returns the condition that ends/terminates a context partition- Returns:
- end condition
-
setEndCondition
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
Returns the list of expressions providing distinct keys, if any- Returns:
- distinct expressions
-
setOptionalDistinctExpressions
Sets the list of expressions providing distinct keys, if any- Parameters:
optionalDistinctExpressions
- distinct expressions
-
toEPL
Description copied from interface:ContextDescriptor
Format as EPL.- Specified by:
toEPL
in interfaceContextDescriptor
- Parameters:
writer
- outputformatter
- formatter
-