T
- The type to be serialized.@Public public interface SerializationSchema<T> extends Serializable
Modifier and Type | Interface and Description |
---|---|
static interface |
SerializationSchema.InitializationContext
A contextual information provided for
open(InitializationContext) method. |
Modifier and Type | Method and Description |
---|---|
default void |
open(SerializationSchema.InitializationContext context)
Initialization method for the schema.
|
byte[] |
serialize(T element)
Serializes the incoming element to a specified type.
|
@PublicEvolving default void open(SerializationSchema.InitializationContext context) throws Exception
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.
context
- Contextual information that can be used during initialization.Exception
byte[] serialize(T element)
element
- The incoming element to be serializedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.