Class MaxwellJsonSerializationSchema
- java.lang.Object
-
- org.apache.flink.formats.json.maxwell.MaxwellJsonSerializationSchema
-
- All Implemented Interfaces:
Serializable
,org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>
public class MaxwellJsonSerializationSchema extends Object implements org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>
Serialization schema from Flink Table/SQL internal data structureRowData
to maxwell-Json.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxwellJsonSerializationSchema(org.apache.flink.table.types.logical.RowType rowType, org.apache.flink.formats.common.TimestampFormat timestampFormat, JsonFormatOptions.MapNullKeyMode mapNullKeyMode, String mapNullKeyLiteral, boolean encodeDecimalAsPlainNumber, boolean ignoreNullFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
void
open(org.apache.flink.api.common.serialization.SerializationSchema.InitializationContext context)
byte[]
serialize(org.apache.flink.table.data.RowData element)
-
-
-
Constructor Detail
-
MaxwellJsonSerializationSchema
public MaxwellJsonSerializationSchema(org.apache.flink.table.types.logical.RowType rowType, org.apache.flink.formats.common.TimestampFormat timestampFormat, JsonFormatOptions.MapNullKeyMode mapNullKeyMode, String mapNullKeyLiteral, boolean encodeDecimalAsPlainNumber, boolean ignoreNullFields)
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.serialization.SerializationSchema.InitializationContext context) throws Exception
- Specified by:
open
in interfaceorg.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>
- Throws:
Exception
-
serialize
public byte[] serialize(org.apache.flink.table.data.RowData element)
- Specified by:
serialize
in interfaceorg.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>
-
-