Class RawBytes

  • All Implemented Interfaces:
    RawData<byte[]>

    public final class RawBytes
    extends Object
    implements RawData<byte[]>
    Helper class used to encapsulate raw value serialized as byte array. It can be used: - in serialization to append an already serialized raw value as is - in deserialization as target wrapper type for the raw value

    No validation is performed, the user is responsible for providing a valid byte array for the used content type.

    The raw value byte array can represent either: - a valid VPack - a valid JSON UTF-8 encoded string

    The driver's InternalSerde supports serializing and deserializing to and from RawBytes.

    • Method Detail

      • of

        public static RawBytes of​(byte[] value)
      • get

        public byte[] get()
        Specified by:
        get in interface RawData<byte[]>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object