@Internal public class RawFormatSerializationSchema extends Object implements SerializationSchema<RowData>
RowData
object into raw (byte based) value.SerializationSchema.InitializationContext
Constructor and Description |
---|
RawFormatSerializationSchema(LogicalType serializedType,
String charsetName,
boolean isBigEndian) |
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 row)
Serializes the incoming element to a specified type.
|
public RawFormatSerializationSchema(LogicalType serializedType, String charsetName, boolean isBigEndian)
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 row)
SerializationSchema
serialize
in interface SerializationSchema<RowData>
row
- The incoming element to be serializedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.