Package org.infinispan.filter
Interface KeyValueFilterConverter<K,V,C>
- All Superinterfaces:
Converter<K,,V, C> KeyValueFilter<K,V>
- All Known Implementing Classes:
AbstractKeyValueFilterConverter,CacheEventFilterConverterAsKeyValueFilterConverter,IterationFilter
This interface is an optimization that can be used when a filter and converter are most efficiently used as the same
object composing the filtering and conversion in the same method invocation.
- Since:
- 7.0
- Author:
- wburns
-
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.Methods inherited from interface org.infinispan.filter.KeyValueFilter
accept, format
-
Method Details
-
filterAndConvert
Will 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
-