public class ContextDescriptorHashSegmented extends Object implements ContextDescriptor
Constructor and Description |
---|
ContextDescriptorHashSegmented()
Ctor.
|
ContextDescriptorHashSegmented(List<ContextDescriptorHashSegmentedItem> items,
int granularity,
boolean preallocate)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
getGranularity()
Returns the granularity.
|
List<ContextDescriptorHashSegmentedItem> |
getItems()
Returns hash items.
|
boolean |
isPreallocate()
Returns flag indicating whether to allocate context partitions upon statement creation, or only when actually referred to
|
void |
setGranularity(int granularity)
Sets the granularity.
|
void |
setItems(List<ContextDescriptorHashSegmentedItem> items)
Sets categories
|
void |
setPreallocate(boolean preallocate)
Set the flag indicating whether to allocate context partitions upon statement creation, or only when actually referred to
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Format as EPL.
|
public ContextDescriptorHashSegmented()
public ContextDescriptorHashSegmented(List<ContextDescriptorHashSegmentedItem> items, int granularity, boolean preallocate)
items
- list of hash code functions and event types to apply togranularity
- a number between 1 and Integer.MAX for parallelismpreallocate
- true to allocate each context partition at time of statement creationpublic List<ContextDescriptorHashSegmentedItem> getItems()
public int getGranularity()
public void setGranularity(int granularity)
granularity
- granularity to setpublic boolean isPreallocate()
public void setPreallocate(boolean preallocate)
preallocate
- preallocation flagpublic void setItems(List<ContextDescriptorHashSegmentedItem> items)
items
- categories to setpublic void toEPL(StringWriter writer, EPStatementFormatter formatter)
ContextDescriptor
toEPL
in interface ContextDescriptor
writer
- outputformatter
- formatter