Class RegionVisualizer.SizeAsBytesSerializer

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

private static final class RegionVisualizer.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>