Class ComposedFilterConverterFactory
java.lang.Object
org.infinispan.server.resp.filter.ComposedFilterConverterFactory
- All Implemented Interfaces:
KeyValueFilterConverterFactory<byte[],
,Object, Object> ParamKeyValueFilterConverterFactory<byte[],
Object, Object>
public class ComposedFilterConverterFactory
extends Object
implements 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
convertFiltersFormat
(Map<Class<?>, List<byte[]>> filters) KeyValueFilterConverter
<byte[], Object, Object> getFilterConverter
(Object[] params) Create an instance ofKeyValueFilterConverter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.filter.ParamKeyValueFilterConverterFactory
getFilterConverter
-
Constructor Details
-
ComposedFilterConverterFactory
public ComposedFilterConverterFactory()
-
-
Method Details
-
getFilterConverter
Description copied from interface:ParamKeyValueFilterConverterFactory
Create an instance ofKeyValueFilterConverter
- Specified by:
getFilterConverter
in interfaceParamKeyValueFilterConverterFactory<byte[],
Object, Object> - Parameters:
params
- Supplied params- Returns:
- KeyValueFilterConverter
-
binaryParam
public boolean binaryParam()- Specified by:
binaryParam
in interfaceParamKeyValueFilterConverterFactory<byte[],
Object, Object> - Returns:
- true if parameters should be passed in binary format to the filter.
-
convertFiltersFormat
-