public class EventTypeIndexBuilder extends Object
EventTypeIndex
for addition and removal of filters.
It delegates the work to make modifications to the filter parameter tree to an IndexTreeBuilderAdd
and IndexTreeBuilderRemove
.
It enforces a policy that a filter callback can only be added once.Constructor and Description |
---|
EventTypeIndexBuilder(EventTypeIndex eventTypeIndex)
Constructor - takes the event type index to manipulate as its parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
add(com.espertech.esper.common.client.EventType eventType,
com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet,
com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback,
FilterServiceGranularLockFactory lockFactory)
Add a filter to the event type index structure, and to the filter subtree.
|
void |
destroy()
Destroy the service.
|
Map<com.espertech.esper.common.client.meta.EventTypeIdPair,Map<Integer,List<FilterItem[]>>> |
get(Set<Integer> statementIds) |
boolean |
isSupportsTakeApply() |
void |
remove(com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback,
com.espertech.esper.common.client.EventType eventType,
com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet)
Remove a filter callback from the given index node.
|
public EventTypeIndexBuilder(EventTypeIndex eventTypeIndex)
eventTypeIndex
- - index to manipulatepublic Map<com.espertech.esper.common.client.meta.EventTypeIdPair,Map<Integer,List<FilterItem[]>>> get(Set<Integer> statementIds)
public void destroy()
public final void add(com.espertech.esper.common.client.EventType eventType, com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet, com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback, FilterServiceGranularLockFactory lockFactory)
valueSet
- is the filter informationfilterCallback
- is the callbacklockFactory
- lock factoryeventType
- event typepublic final void remove(com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback, com.espertech.esper.common.client.EventType eventType, com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet)
eventType
- event typevalueSet
- value setfilterCallback
- is the callback to removepublic boolean isSupportsTakeApply()
Copyright © 2005–2022. All rights reserved.