public class ContextDescriptorHashSegmentedItem extends Object implements ContextDescriptor
Constructor and Description |
---|
ContextDescriptorHashSegmentedItem()
Ctor.
|
ContextDescriptorHashSegmentedItem(Expression hashFunction,
Filter filter)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Filter |
getFilter()
Returns the filter.
|
Expression |
getHashFunction()
Returns the hash function.
|
void |
setFilter(Filter filter)
Sets the filter.
|
void |
setHashFunction(Expression hashFunction)
Set the hash function (SingleRowMethodExpression)
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Format as EPL.
|
public ContextDescriptorHashSegmentedItem()
public ContextDescriptorHashSegmentedItem(Expression hashFunction, Filter filter)
hashFunction
- the hash function, expecting SingleRowMethodExpressionfilter
- the event types to apply topublic Filter getFilter()
public void setFilter(Filter filter)
filter
- filterpublic Expression getHashFunction()
public void setHashFunction(Expression hashFunction)
hashFunction
- to setpublic void toEPL(StringWriter writer, EPStatementFormatter formatter)
ContextDescriptor
toEPL
in interface ContextDescriptor
writer
- outputformatter
- formatter