Class ComposedFilterConverter<K,V,C>
java.lang.Object
org.infinispan.filter.AbstractKeyValueFilterConverter<K,V,C>
org.infinispan.server.resp.filter.ComposedFilterConverter<K,V,C>
- Type Parameters:
K- : The filters key types.V- : The filters value types.C- : The filters return type.
- All Implemented Interfaces:
Converter<K,,V, C> KeyValueFilter<K,,V> KeyValueFilterConverter<K,V, C>
A filter which is composed of other filters.
The operations are applied to the underlying filters in no specific order. Once the first filter returns
null, the execution stops.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComposedFilterConverter(List<KeyValueFilterConverter<K, V, C>> filterConverters) -
Method Summary
Methods inherited from class org.infinispan.filter.AbstractKeyValueFilterConverter
accept, convert
-
Field Details
-
EXTERNALIZER
-
-
Constructor Details
-
ComposedFilterConverter
-
-
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
-
format
- Returns:
- The desired data format to be used in the
KeyValueFilter.accept(Object, Object, Metadata)operation. If null, the filter will receive data as it's stored.
-