Class IterationFilter<K,V,C>
java.lang.Object
org.infinispan.filter.AbstractKeyValueFilterConverter<K,V,C>
org.infinispan.server.core.iteration.IterationFilter<K,V,C>
- All Implemented Interfaces:
Converter<K,V, C>, KeyValueFilter<K, V>, KeyValueFilterConverter<K, V, C>
@ProtoTypeId(6500)
public class IterationFilter<K,V,C>
extends AbstractKeyValueFilterConverter<K,V,C>
- Since:
- 8.0
- Author:
- gustavonalle, wburns
-
Constructor Summary
ConstructorsConstructorDescriptionIterationFilter(MediaType storageMediaType, MediaType requestType, KeyValueFilterConverter<K, V, C> providedFilter) -
Method Summary
Modifier and TypeMethodDescriptionfilterAndConvert(K key, V value, Metadata metadata) Will both filter the entry and if passed subsequently convert the value to a new value.voidinjectDependencies(Cache cache, EncoderRegistry encoderRegistry) Methods inherited from class AbstractKeyValueFilterConverter
accept, convertMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface KeyValueFilter
format
-
Constructor Details
-
IterationFilter
-
-
Method Details
-
filterAndConvert
Description copied from interface:KeyValueFilterConverterWill both filter the entry and if passed subsequently convert the value to a new value. A returned value of null will symbolize the value not passing the filter, so ensure your conversion will not return null if you want this entry to be returned.- Parameters:
key- The key of the entry to filtervalue- The value of the entry to filter and then convertmetadata- The metadata attached to the entry- Returns:
- The converted value or null if the filter didn't pass
-
injectDependencies
-