Class ByteArraySerializer

java.lang.Object
org.apache.hadoop.hbase.http.gson.ByteArraySerializer
All Implemented Interfaces:
org.apache.hbase.thirdparty.com.google.gson.JsonSerializer<byte[]>

@Private public final class ByteArraySerializer extends Object implements org.apache.hbase.thirdparty.com.google.gson.JsonSerializer<byte[]>
Serialize a byte[] using Bytes.toString().
  • Constructor Details

  • Method Details

    • serialize

      public org.apache.hbase.thirdparty.com.google.gson.JsonElement serialize(byte[] src, Type typeOfSrc, org.apache.hbase.thirdparty.com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface org.apache.hbase.thirdparty.com.google.gson.JsonSerializer<byte[]>