Class BytePrimitiveArraySerializer
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypeSerializer<T>
-
- org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton<byte[]>
-
- org.apache.flink.cdc.runtime.serializer.BytePrimitiveArraySerializer
-
- All Implemented Interfaces:
Serializable
public final class BytePrimitiveArraySerializer extends TypeSerializerSingleton<byte[]>
A serializer for byte arrays.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBytePrimitiveArraySerializer.BytePrimitiveArraySerializerSnapshotSerializer configuration snapshot for compatibility and format evolution.
-
Field Summary
Fields Modifier and Type Field Description static BytePrimitiveArraySerializerINSTANCE
-
Constructor Summary
Constructors Constructor Description BytePrimitiveArraySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]copy(byte[] from)byte[]copy(byte[] from, byte[] reuse)voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target)byte[]createInstance()byte[]deserialize(byte[] reuse, org.apache.flink.core.memory.DataInputView source)byte[]deserialize(org.apache.flink.core.memory.DataInputView source)intgetLength()booleanisImmutableType()voidserialize(byte[] record, org.apache.flink.core.memory.DataOutputView target)org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<byte[]>snapshotConfiguration()-
Methods inherited from class org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton
duplicate, equals, hashCode
-
-
-
-
Field Detail
-
INSTANCE
public static final BytePrimitiveArraySerializer INSTANCE
-
-
Method Detail
-
isImmutableType
public boolean isImmutableType()
- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>
-
createInstance
public byte[] createInstance()
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>
-
copy
public byte[] copy(byte[] from)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>
-
copy
public byte[] copy(byte[] from, byte[] reuse)- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>
-
getLength
public int getLength()
- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>
-
serialize
public void serialize(byte[] record, org.apache.flink.core.memory.DataOutputView target) throws IOException- Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>- Throws:
IOException
-
deserialize
public byte[] deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>- Throws:
IOException
-
deserialize
public byte[] deserialize(byte[] reuse, org.apache.flink.core.memory.DataInputView source) throws IOException- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>- Throws:
IOException
-
copy
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws IOException- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>- Throws:
IOException
-
snapshotConfiguration
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<byte[]> snapshotConfiguration()
- Specified by:
snapshotConfigurationin classorg.apache.flink.api.common.typeutils.TypeSerializer<byte[]>
-
-