Class GlobMatchFilterConverter<K,V>
java.lang.Object
org.infinispan.filter.AbstractKeyValueFilterConverter<byte[],V,byte[]>
org.infinispan.server.resp.filter.GlobMatchFilterConverter<K,V>
- All Implemented Interfaces:
Converter<byte[],
,V, byte[]> KeyValueFilter<byte[],
,V> KeyValueFilterConverter<byte[],
V, byte[]>
@ProtoName("GlobMatchFilterConverter")
public class GlobMatchFilterConverter<K,V>
extends AbstractKeyValueFilterConverter<byte[],V,byte[]>
A
KeyValueFilterConverter
which matches the key against a glob pattern. Since the
value is unused, it just returns an empty byte array- Since:
- 15.0
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
filterAndConvert
(byte[] key, V value, Metadata metadata) Will both filter the entry and if passed subsequently convert the value to a new value.format()
Methods inherited from class org.infinispan.filter.AbstractKeyValueFilterConverter
accept, convert
-
Method Details
-
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.
-
filterAndConvert
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 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
-