|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.ContextDescriptorHashSegmented
public class ContextDescriptorHashSegmented
Hash-segmented context.
Constructor Summary | |
---|---|
ContextDescriptorHashSegmented()
Ctor. |
|
ContextDescriptorHashSegmented(java.util.List<ContextDescriptorHashSegmentedItem> items,
int granularity,
boolean preallocate)
Ctor. |
Method Summary | |
---|---|
int |
getGranularity()
Returns the granularity. |
java.util.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(java.util.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(java.io.StringWriter writer,
EPStatementFormatter formatter)
Format as EPL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextDescriptorHashSegmented()
public ContextDescriptorHashSegmented(java.util.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 creationMethod Detail |
---|
public java.util.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(java.util.List<ContextDescriptorHashSegmentedItem> items)
items
- categories to setpublic void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
ContextDescriptor
toEPL
in interface ContextDescriptor
writer
- outputformatter
- formatter
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |