public class EventTypeIndexBuilder
extends java.lang.Object
EventTypeIndex
for addition and removal of filters.
It delegates the work to make modifications to the filter parameter tree to an IndexTreeBuilder
.
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(FilterValueSet filterValueSet,
FilterHandle filterCallback,
FilterServiceGranularLockFactory lockFactory)
Add a filter to the event type index structure, and to the filter subtree.
|
void |
apply(FilterSet filterSet,
FilterServiceGranularLockFactory lockFactory)
Add the filters, from previously-taken filters.
|
void |
destroy()
Destroy the service.
|
void |
remove(FilterHandle filterCallback)
Remove a filter callback from the given index node.
|
FilterSet |
take(java.util.Set<java.lang.String> statementIds)
Returns filters for the statement ids.
|
public EventTypeIndexBuilder(EventTypeIndex eventTypeIndex)
eventTypeIndex
- - index to manipulatepublic void destroy()
public final void add(FilterValueSet filterValueSet, FilterHandle filterCallback, FilterServiceGranularLockFactory lockFactory)
filterValueSet
- is the filter informationfilterCallback
- is the callbackpublic final void remove(FilterHandle filterCallback)
filterCallback
- is the callback to removepublic final FilterSet take(java.util.Set<java.lang.String> statementIds)
statementIds
- ids to takepublic void apply(FilterSet filterSet, FilterServiceGranularLockFactory lockFactory)
filterSet
- to add