Package org.apache.iceberg.metrics
Class CommitReportParser
java.lang.Object
org.apache.iceberg.metrics.CommitReportParser
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommitReport
fromJson
(com.fasterxml.jackson.databind.JsonNode json) static CommitReport
static String
toJson
(CommitReport commitReport) static String
toJson
(CommitReport commitReport, boolean pretty) static void
toJson
(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) static void
toJsonWithoutStartEnd
(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) This serializes theCommitReport
without writing a start/end object and is mainly used byReportMetricsRequestParser
.
-
Method Details
-
toJson
-
toJson
-
toJson
public static void toJson(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
toJsonWithoutStartEnd
public static void toJsonWithoutStartEnd(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException This serializes theCommitReport
without writing a start/end object and is mainly used byReportMetricsRequestParser
.- Parameters:
commitReport
- TheCommitReport
to serializegen
- TheJsonGenerator
to use- Throws:
IOException
- If an error occurs while serializing
-
fromJson
-
fromJson
-