Class IndexedKeyFormatMapper

  • All Implemented Interfaces:
    org.infinispan.persistence.keymappers.Key2StringMapper, org.infinispan.persistence.keymappers.TwoWayKey2StringMapper
    Direct Known Subclasses:
    DynamicKeyFormatMapper

    public class IndexedKeyFormatMapper
    extends Object
    implements org.infinispan.persistence.keymappers.TwoWayKey2StringMapper
    TwoWayKey2StringMapper implementation that maps multiple Formatter instances. Key is mapped to an padded hexadecimal index + the formatted key.
    Author:
    Paul Ferraro
    • Constructor Detail

      • IndexedKeyFormatMapper

        public IndexedKeyFormatMapper​(List<? extends org.wildfly.clustering.marshalling.spi.Formatter<?>> keyFormats)
    • Method Detail

      • isSupportedType

        public boolean isSupportedType​(Class<?> keyType)
        Specified by:
        isSupportedType in interface org.infinispan.persistence.keymappers.Key2StringMapper
      • getStringMapping

        public String getStringMapping​(Object key)
        Specified by:
        getStringMapping in interface org.infinispan.persistence.keymappers.Key2StringMapper
      • getKeyMapping

        public Object getKeyMapping​(String value)
        Specified by:
        getKeyMapping in interface org.infinispan.persistence.keymappers.TwoWayKey2StringMapper