Package org.apache.iceberg.metrics
Class ScanReportParser
java.lang.Object
org.apache.iceberg.metrics.ScanReportParser
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScanReport
fromJson
(com.fasterxml.jackson.databind.JsonNode json) static ScanReport
static String
toJson
(ScanReport scanReport) static 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 Details
-
toJson
-
toJson
-
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 theScanReport
without writing a start/end object and is mainly used byReportMetricsRequestParser
.- Parameters:
scanReport
- TheScanReport
to serializegen
- TheJsonGenerator
to use- Throws:
IOException
- If an error occurs while serializing
-
fromJson
-
fromJson
-