Class IterationFilter<K,​V,​C>

    • Constructor Detail

      • IterationFilter

        public IterationFilter​(org.infinispan.commons.dataconversion.MediaType storageMediaType,
                               org.infinispan.commons.dataconversion.MediaType requestType,
                               Optional<KeyValueFilterConverter<K,​V,​C>> providedFilter)
    • Method Detail

      • filterAndConvert

        public C filterAndConvert​(K key,
                                  V value,
                                  Metadata metadata)
        Description copied from interface: KeyValueFilterConverter
        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.
        key - The key of the entry to filter
        value - The value of the entry to filter and then convert
        metadata - The metadata attached to the entry
        The converted value or null if the filter didn't pass
      • injectDependencies

        public void injectDependencies​(Cache cache,
                                       EncoderRegistry encoderRegistry)