Class ContextDescriptorConditionPattern
java.lang.Object
com.espertech.esper.common.client.soda.ContextDescriptorConditionPattern
- All Implemented Interfaces:
ContextDescriptorCondition
,Serializable
Context condition that start/initiated or ends/terminates context partitions based on a pattern.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ContextDescriptorConditionPattern
(PatternExpr pattern, boolean inclusive, boolean now, String asName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the stream name assigned using the "as" keyword, or null if not providedReturns the pattern expression.boolean
Return the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.boolean
isNow()
Returns "now" indicatorvoid
Sets the stream name assigned using the "as" keyword, or null if not providedvoid
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" indicatorvoid
setPattern
(PatternExpr pattern) Sets the pattern expression.void
toEPL
(StringWriter writer, EPStatementFormatter formatter) Populate the EPL.
-
Constructor Details
-
ContextDescriptorConditionPattern
public ContextDescriptorConditionPattern()Ctor. -
ContextDescriptorConditionPattern
public ContextDescriptorConditionPattern(PatternExpr pattern, boolean inclusive, boolean now, String asName) Ctor.- Parameters:
pattern
- pattern expressioninclusive
- if the events of the pattern should be included in the contextual statementsnow
- indicator whether "now"asName
- stream name, or null if not provided
-
-
Method Details
-
getPattern
Returns the pattern expression.- Returns:
- pattern
-
setPattern
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
Returns the stream name assigned using the "as" keyword, or null if not provided- Returns:
- as-name
-
setAsName
Sets the stream name assigned using the "as" keyword, or null if not provided- Parameters:
asName
- as-name
-
toEPL
Description copied from interface:ContextDescriptorCondition
Populate the EPL.- Specified by:
toEPL
in interfaceContextDescriptorCondition
- Parameters:
writer
- outputformatter
- formatter
-