Class ContextDescriptorHashSegmentedItem
java.lang.Object
com.espertech.esper.common.client.soda.ContextDescriptorHashSegmentedItem
- All Implemented Interfaces:
ContextDescriptor
,Serializable
Context detail for a library-func and filter pair for the hash segmented context.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ContextDescriptorHashSegmentedItem
(Expression hashFunction, Filter filter) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filter.Returns the hash function.void
Sets the filter.void
setHashFunction
(Expression hashFunction) Set the hash function (SingleRowMethodExpression)void
toEPL
(StringWriter writer, EPStatementFormatter formatter) Format as EPL.
-
Constructor Details
-
ContextDescriptorHashSegmentedItem
public ContextDescriptorHashSegmentedItem()Ctor. -
ContextDescriptorHashSegmentedItem
Ctor.- Parameters:
hashFunction
- the hash function, expecting SingleRowMethodExpressionfilter
- the event types to apply to
-
-
Method Details
-
getFilter
Returns the filter.- Returns:
- filter
-
setFilter
Sets the filter.- Parameters:
filter
- filter
-
getHashFunction
Returns the hash function.- Returns:
- hash function
-
setHashFunction
Set the hash function (SingleRowMethodExpression)- Parameters:
hashFunction
- to set
-
toEPL
Description copied from interface:ContextDescriptor
Format as EPL.- Specified by:
toEPL
in interfaceContextDescriptor
- Parameters:
writer
- outputformatter
- formatter
-