code: private boolean processQueryEventFilter(EventFilter filter, EntryEventType eventType,
                                              Data dataKey, Object oldValue, Object dataValue, String mapNameOrNull) {
          Object testValue;
          if (eventType == REMOVED || eventType == EVICTED || eventType == EXPIRED) {
              testValue = oldValue;
          } else {
              testValue = dataValue;
          }
  
          return evaluateQueryEventFilter(filter, dataKey, testValue, mapNameOrNull);
      }
docs: Evaluate if the filter matches the map event. In case of a remove, evict or expire event
  the old value will be used for evaluation, otherwise we use the new value.
  The filter must be of {@link QueryEventFilter} type.
  
  @param filter        a {@link QueryEventFilter} filter
  @param eventType     the event type
  @param dataKey       the entry key
  @param oldValue      the entry value before the event
  @param dataValue     the entry value after the event
  @param mapNameOrNull the map name. May be null if this is not a map event (e.g. cache event)
  @return {@code true} if the entry matches the query event filter