public class OggJsonSerializationSchema extends Object implements SerializationSchema<RowData>
RowData
to Ogg JSON.SerializationSchema.InitializationContext
Constructor and Description |
---|
OggJsonSerializationSchema(RowType rowType,
TimestampFormat timestampFormat,
JsonFormatOptions.MapNullKeyMode mapNullKeyMode,
String mapNullKeyLiteral,
boolean encodeDecimalAsPlainNumber,
boolean ignoreNullFields) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
void |
open(SerializationSchema.InitializationContext context)
Initialization method for the schema.
|
byte[] |
serialize(RowData rowData)
Serializes the incoming element to a specified type.
|
public OggJsonSerializationSchema(RowType rowType, TimestampFormat timestampFormat, JsonFormatOptions.MapNullKeyMode mapNullKeyMode, String mapNullKeyLiteral, boolean encodeDecimalAsPlainNumber, boolean ignoreNullFields)
public void open(SerializationSchema.InitializationContext context) throws Exception
SerializationSchema
SerializationSchema.serialize(Object)
and thus suitable for one time setup work.
The provided SerializationSchema.InitializationContext
can be used to access additional features such
as e.g. registering user metrics.
open
in interface SerializationSchema<RowData>
context
- Contextual information that can be used during initialization.Exception
public byte[] serialize(RowData rowData)
SerializationSchema
serialize
in interface SerializationSchema<RowData>
rowData
- The incoming element to be serializedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.