public abstract class FilterServiceBase extends Object implements FilterServiceSPI
Modifier | Constructor and Description |
---|---|
protected |
FilterServiceBase(FilterServiceGranularLockFactory lockFactory,
boolean allowIsolation) |
Modifier and Type | Method and Description |
---|---|
void |
addFilterServiceListener(FilterServiceListener filterServiceListener)
Add activity listener.void acquireWriteLock();
|
protected void |
addInternal(com.espertech.esper.common.client.EventType eventType,
com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet,
com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback) |
void |
destroy() |
protected long |
evaluateInternal(com.espertech.esper.common.client.EventBean theEvent,
Collection<com.espertech.esper.common.internal.filtersvc.FilterHandle> matches) |
protected long |
evaluateInternal(com.espertech.esper.common.client.EventBean theEvent,
Collection<com.espertech.esper.common.internal.filtersvc.FilterHandle> matches,
int statementId) |
int |
getCountTypes() |
int |
getFilterCountApprox() |
long |
getFiltersVersion() |
protected Map<com.espertech.esper.common.client.meta.EventTypeIdPair,Map<Integer,List<FilterItem[]>>> |
getInternal(Set<Integer> statementIds) |
long |
getNumEventsEvaluated() |
void |
init(Supplier<Collection<com.espertech.esper.common.client.EventType>> availableTypes)
Initialization is optional and provides a chance to preload things after statements are available.
|
void |
removeFilterServiceListener(FilterServiceListener filterServiceListener)
Remove activity listener.
|
protected void |
removeInternal(com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback,
com.espertech.esper.common.client.EventType eventType,
com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet) |
protected void |
removeTypeInternal(com.espertech.esper.common.client.EventType type) |
void |
resetStats() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
protected FilterServiceBase(FilterServiceGranularLockFactory lockFactory, boolean allowIsolation)
public long getFiltersVersion()
getFiltersVersion
in interface com.espertech.esper.common.internal.filtersvc.FilterService
public void destroy()
destroy
in interface com.espertech.esper.common.internal.filtersvc.FilterService
protected void addInternal(com.espertech.esper.common.client.EventType eventType, com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet, com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback)
protected void removeInternal(com.espertech.esper.common.internal.filtersvc.FilterHandle filterCallback, com.espertech.esper.common.client.EventType eventType, com.espertech.esper.common.internal.filterspec.FilterValueSetParam[][] valueSet)
protected long evaluateInternal(com.espertech.esper.common.client.EventBean theEvent, Collection<com.espertech.esper.common.internal.filtersvc.FilterHandle> matches)
protected long evaluateInternal(com.espertech.esper.common.client.EventBean theEvent, Collection<com.espertech.esper.common.internal.filtersvc.FilterHandle> matches, int statementId)
public final long getNumEventsEvaluated()
getNumEventsEvaluated
in interface com.espertech.esper.common.internal.filtersvc.FilterService
public void resetStats()
resetStats
in interface com.espertech.esper.common.internal.filtersvc.FilterService
public void addFilterServiceListener(FilterServiceListener filterServiceListener)
FilterServiceSPI
addFilterServiceListener
in interface FilterServiceSPI
filterServiceListener
- to addpublic void removeFilterServiceListener(FilterServiceListener filterServiceListener)
FilterServiceSPI
removeFilterServiceListener
in interface FilterServiceSPI
filterServiceListener
- to removeprotected Map<com.espertech.esper.common.client.meta.EventTypeIdPair,Map<Integer,List<FilterItem[]>>> getInternal(Set<Integer> statementIds)
public int getFilterCountApprox()
getFilterCountApprox
in interface FilterServiceSPI
public int getCountTypes()
getCountTypes
in interface FilterServiceSPI
public void init(Supplier<Collection<com.espertech.esper.common.client.EventType>> availableTypes)
FilterServiceSPI
init
in interface FilterServiceSPI
availableTypes
- type informationprotected void removeTypeInternal(com.espertech.esper.common.client.EventType type)
Copyright © 2005–2018. All rights reserved.