Class SizeAsBytesSerializer

java.lang.Object
org.apache.hadoop.hbase.master.http.gson.SizeAsBytesSerializer
All Implemented Interfaces:
org.apache.hbase.thirdparty.com.google.gson.JsonSerializer<Size>

@Private final class SizeAsBytesSerializer extends Object implements org.apache.hbase.thirdparty.com.google.gson.JsonSerializer<Size>
Simplify representation of a Size instance by converting to bytes.
  • Constructor Details

  • Method Details

    • serialize

      public org.apache.hbase.thirdparty.com.google.gson.JsonElement serialize(Size 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<Size>