Package org.apache.iceberg.metrics
Class CommitReportParser
java.lang.Object
org.apache.iceberg.metrics.CommitReportParser
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommitReportfromJson(com.fasterxml.jackson.databind.JsonNode json) static CommitReportstatic StringtoJson(CommitReport commitReport) static StringtoJson(CommitReport commitReport, boolean pretty) static voidtoJson(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) static voidtoJsonWithoutStartEnd(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) This serializes theCommitReportwithout 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 theCommitReportwithout writing a start/end object and is mainly used byReportMetricsRequestParser.- Parameters:
commitReport- TheCommitReportto serializegen- TheJsonGeneratorto use- Throws:
IOException- If an error occurs while serializing
-
fromJson
-
fromJson
-