Class ProtobufWrapper

  • All Implemented Interfaces:
    org.infinispan.commons.dataconversion.Wrapper

    public final class ProtobufWrapper
    extends Object
    implements org.infinispan.commons.dataconversion.Wrapper
    Wraps byte[] in a ProtobufValueWrapper in order to make the payload indexable by Hibernate Search.
    Since:
    9.1
    • Method Detail

      • wrap

        public Object wrap​(Object value)
        Specified by:
        wrap in interface org.infinispan.commons.dataconversion.Wrapper
      • unwrap

        public Object unwrap​(Object target)
        Specified by:
        unwrap in interface org.infinispan.commons.dataconversion.Wrapper
      • id

        public byte id()
        Specified by:
        id in interface org.infinispan.commons.dataconversion.Wrapper
      • isFilterable

        public boolean isFilterable()
        Specified by:
        isFilterable in interface org.infinispan.commons.dataconversion.Wrapper
        Returns:
        true if the wrapped format is suitable to be indexed or filtered, thus avoiding extra unwrapping.