net.esper.filter
Class EventTypeIndexBuilder

java.lang.Object
  extended by net.esper.filter.EventTypeIndexBuilder

public class EventTypeIndexBuilder
extends Object

This class is responsible for changes to 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 Summary
EventTypeIndexBuilder(EventTypeIndex eventTypeIndex)
          Constructor - takes the event type index to manipulate as its parameter.
 
Method Summary
 void add(FilterValueSet filterValueSet, FilterHandle filterCallback)
          Add a filter to the event type index structure, and to the filter subtree.
 void destroy()
          Destroy the service.
 void remove(FilterHandle filterCallback)
          Remove a filter callback from the given index node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTypeIndexBuilder

public EventTypeIndexBuilder(EventTypeIndex eventTypeIndex)
Constructor - takes the event type index to manipulate as its parameter.

Parameters:
eventTypeIndex - - index to manipulate
Method Detail

destroy

public void destroy()
Destroy the service.


add

public final void add(FilterValueSet filterValueSet,
                      FilterHandle filterCallback)
Add a filter to the event type index structure, and to the filter subtree. Throws an IllegalStateException exception if the callback is already registered.

Parameters:
filterValueSet - is the filter information
filterCallback - is the callback

remove

public final void remove(FilterHandle filterCallback)
Remove a filter callback from the given index node.

Parameters:
filterCallback - is the callback to remove

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com