Package io.delta.kernel.internal.metrics
Class MetricsReportSerializer
Object
io.delta.kernel.internal.metrics.MetricsReportSerializer
Provides Jackson ObjectMapper configuration for serializing
MetricsReport types-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapperObjectMapper configured for serializing metrics reports. -
Method Summary
-
Field Details
-
OBJECT_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPERObjectMapper configured for serializing metrics reports.This ObjectMapper is pre-configured with custom serializers for:
- Java 8 Optional types (serialized as null when empty)
- Exceptions (serialized using their toString() representation)
- Complex types like StructType and Predicate (using string representation)
- Column objects (serialized as arrays of field names)
-