public abstract class AbstractFilteringStrategy extends Object implements FilteringStrategy
Modifier and Type | Field and Description |
---|---|
protected MapServiceContext |
mapServiceContext |
protected InternalSerializationService |
serializationService |
FILTER_DOES_NOT_MATCH
Constructor and Description |
---|
AbstractFilteringStrategy(InternalSerializationService serializationService,
MapServiceContext mapServiceContext) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluateQueryEventFilter(EventFilter filter,
Data dataKey,
Object testValue,
String mapNameOrNull)
Evalues the
filter using a CachedQueryEntry together with the
value Extractors configured for this map. |
protected String |
getThisNodesAddress() |
protected boolean |
processEntryEventFilter(EventFilter filter,
Data dataKey)
Evaluates filters of
EntryEventFilter type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doFilter, getEntryEventDataCache
protected final InternalSerializationService serializationService
protected final MapServiceContext mapServiceContext
public AbstractFilteringStrategy(InternalSerializationService serializationService, MapServiceContext mapServiceContext)
protected String getThisNodesAddress()
protected boolean processEntryEventFilter(EventFilter filter, Data dataKey)
EntryEventFilter
type.filter
- the filter which must be a EntryEventFilter
dataKey
- the event entry keytrue
if the filter matchesprotected boolean evaluateQueryEventFilter(EventFilter filter, Data dataKey, Object testValue, String mapNameOrNull)
filter
using a CachedQueryEntry
together with the
value Extractors
configured for this map. The filter must be of QueryEventFilter
type.filter
- a QueryEventFilter
filterdataKey
- the entry keytestValue
- the value used to evaluate the filtermapNameOrNull
- the map name. May be null if this is not a map event (e.g. cache event)true
if the entry matches the query event filterCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.