Class ScanReportParser

java.lang.Object
org.apache.iceberg.metrics.ScanReportParser

public class ScanReportParser extends Object
  • Method Details

    • toJson

      public static String toJson(ScanReport scanReport)
    • toJson

      public static String toJson(ScanReport scanReport, boolean pretty)
    • toJson

      public static void toJson(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • toJsonWithoutStartEnd

      public static void toJsonWithoutStartEnd(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      This serializes the ScanReport without writing a start/end object and is mainly used by ReportMetricsRequestParser.
      Parameters:
      scanReport - The ScanReport to serialize
      gen - The JsonGenerator to use
      Throws:
      IOException - If an error occurs while serializing
    • fromJson

      public static ScanReport fromJson(String json)
    • fromJson

      public static ScanReport fromJson(com.fasterxml.jackson.databind.JsonNode json)