Class RespTypeFilterConverter<V>

java.lang.Object
org.infinispan.filter.AbstractKeyValueFilterConverter<byte[],V,V>
org.infinispan.server.resp.filter.RespTypeFilterConverter<V>
Type Parameters:
V - : The type of the value.
All Implemented Interfaces:
Converter<byte[],V,V>, KeyValueFilter<byte[],V>, KeyValueFilterConverter<byte[],V,V>

@ProtoName("RespTypeFilterConverter") public class RespTypeFilterConverter<V> extends AbstractKeyValueFilterConverter<byte[],V,V>
Filter based on the RespTypes.

The filter does not convert the value type V.

Since:
15.0
  • Constructor Details

    • RespTypeFilterConverter

      @ProtoFactory public RespTypeFilterConverter(byte ordinal)
  • Method Details

    • filterAndConvert

      public V filterAndConvert(byte[] 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.
      Parameters:
      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
      Returns:
      The converted value or null if the filter didn't pass
    • format

      public MediaType 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.