public class StructuredRecordSerde extends Object implements com.google.gson.JsonSerializer<io.cdap.cdap.api.data.format.StructuredRecord>, com.google.gson.JsonDeserializer<io.cdap.cdap.api.data.format.StructuredRecord>
| Constructor and Description |
|---|
StructuredRecordSerde() |
| Modifier and Type | Method and Description |
|---|---|
io.cdap.cdap.api.data.format.StructuredRecord |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(io.cdap.cdap.api.data.format.StructuredRecord structuredRecord,
Type type,
com.google.gson.JsonSerializationContext context) |
public io.cdap.cdap.api.data.format.StructuredRecord deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<io.cdap.cdap.api.data.format.StructuredRecord>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(io.cdap.cdap.api.data.format.StructuredRecord structuredRecord,
Type type,
com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<io.cdap.cdap.api.data.format.StructuredRecord>Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.