Class ComposedFilterConverterFactory

java.lang.Object
org.infinispan.server.resp.filter.ComposedFilterConverterFactory
All Implemented Interfaces:
org.infinispan.filter.KeyValueFilterConverterFactory<byte[],Object,Object>, org.infinispan.filter.ParamKeyValueFilterConverterFactory<byte[],Object,Object>

public class ComposedFilterConverterFactory extends Object implements org.infinispan.filter.ParamKeyValueFilterConverterFactory<byte[],Object,Object>
Creates a ComposedFilterConverter.

During the allocation of the filter, the parameters must be a byte[][] and have the expected format. Only an exhaustive list of filters are accepted to be composed. Which includes:

To add more filters, the clazzToByte(Class) needs to be updated, along with the allocation to compose the filters.

Since:
15.0
  • Constructor Details

    • ComposedFilterConverterFactory

      public ComposedFilterConverterFactory()
  • Method Details

    • getFilterConverter

      public org.infinispan.filter.KeyValueFilterConverter<byte[],Object,Object> getFilterConverter(Object[] params)
      Specified by:
      getFilterConverter in interface org.infinispan.filter.ParamKeyValueFilterConverterFactory<byte[],Object,Object>
    • binaryParam

      public boolean binaryParam()
      Specified by:
      binaryParam in interface org.infinispan.filter.ParamKeyValueFilterConverterFactory<byte[],Object,Object>
    • convertFiltersFormat

      public static Map.Entry<Class<?>,List<byte[]>> convertFiltersFormat(Map<Class<?>,List<byte[]>> filters)