Package org.apache.iceberg.metrics
Class ScanReportParser
- java.lang.Object
-
- org.apache.iceberg.metrics.ScanReportParser
-
public class ScanReportParser extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScanReport
fromJson(com.fasterxml.jackson.databind.JsonNode json)
static ScanReport
fromJson(java.lang.String json)
static java.lang.String
toJson(ScanReport scanReport)
static java.lang.String
toJson(ScanReport scanReport, boolean pretty)
static void
toJson(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen)
static void
toJsonWithoutStartEnd(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen)
This serializes theScanReport
without writing a start/end object and is mainly used byReportMetricsRequestParser
.
-
-
-
Method Detail
-
toJson
public static java.lang.String toJson(ScanReport scanReport)
-
toJson
public static java.lang.String toJson(ScanReport scanReport, boolean pretty)
-
toJson
public static void toJson(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
- Throws:
java.io.IOException
-
toJsonWithoutStartEnd
public static void toJsonWithoutStartEnd(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
This serializes theScanReport
without writing a start/end object and is mainly used byReportMetricsRequestParser
.- Parameters:
scanReport
- TheScanReport
to serializegen
- TheJsonGenerator
to use- Throws:
java.io.IOException
- If an error occurs while serializing
-
fromJson
public static ScanReport fromJson(java.lang.String json)
-
fromJson
public static ScanReport fromJson(com.fasterxml.jackson.databind.JsonNode json)
-
-