Class MeasurementSerializer
java.lang.Object
org.apache.wayang.commons.util.profiledb.json.MeasurementSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<Measurement>
public class MeasurementSerializer
extends Object
implements com.google.gson.JsonSerializer<Measurement>
Custom serializer for
Measurements
Detects actual subclass of given instances, encodes this class membership, and then delegates serialization to that subtype.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementserialize(Measurement measurement, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
MeasurementSerializer
public MeasurementSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Measurement measurement, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<Measurement>
-