Package org.apache.flink.table.dataview
Class ListViewSerializer<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>
-
- org.apache.flink.table.dataview.ListViewSerializer<T>
-
- Type Parameters:
T- The type of element in the list.
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.typeutils.LegacySerializerSnapshotTransformer<ListView<T>>
@Internal @Deprecated public class ListViewSerializer<T> extends org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>> implements org.apache.flink.api.common.typeutils.LegacySerializerSnapshotTransformer<ListView<T>>
Deprecated.A serializer for [[ListView]]. The serializer relies on an element serializer for the serialization of the list's elements.The serialization format for the list is as follows: four bytes for the length of the list, followed by the serialized representation of each element.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListViewSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<List<T>> listSerializer)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target)Deprecated.ListView<T>copy(ListView<T> from)Deprecated.ListView<T>copy(ListView<T> from, ListView<T> reuse)Deprecated.ListView<T>createInstance()Deprecated.ListView<T>deserialize(org.apache.flink.core.memory.DataInputView source)Deprecated.ListView<T>deserialize(ListView<T> reuse, org.apache.flink.core.memory.DataInputView source)Deprecated.org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>duplicate()Deprecated.booleanequals(Object obj)Deprecated.intgetLength()Deprecated.org.apache.flink.api.common.typeutils.TypeSerializer<List<T>>getListSerializer()Deprecated.inthashCode()Deprecated.booleanisImmutableType()Deprecated.voidserialize(ListView<T> record, org.apache.flink.core.memory.DataOutputView target)Deprecated.org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<ListView<T>>snapshotConfiguration()Deprecated.<U> org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<ListView<T>>transformLegacySerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<U> legacySnapshot)Deprecated.We need to override this as aLegacySerializerSnapshotTransformerbecause in Flink 1.6.x and below, this serializer was incorrectly returning directly the snapshot of the nested list serializer as its own snapshot.
-
-
-
Method Detail
-
isImmutableType
public boolean isImmutableType()
Deprecated.
-
duplicate
public org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>> duplicate()
Deprecated.
-
getLength
public int getLength()
Deprecated.
-
serialize
public void serialize(ListView<T> record, org.apache.flink.core.memory.DataOutputView target) throws IOException
Deprecated.- Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>- Throws:
IOException
-
deserialize
public ListView<T> deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
Deprecated.- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>- Throws:
IOException
-
deserialize
public ListView<T> deserialize(ListView<T> reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
Deprecated.- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>- Throws:
IOException
-
copy
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws IOExceptionDeprecated.- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>- Throws:
IOException
-
equals
public boolean equals(Object obj)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
snapshotConfiguration
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<ListView<T>> snapshotConfiguration()
Deprecated.
-
transformLegacySerializerSnapshot
public <U> org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<ListView<T>> transformLegacySerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<U> legacySnapshot)
Deprecated.We need to override this as aLegacySerializerSnapshotTransformerbecause in Flink 1.6.x and below, this serializer was incorrectly returning directly the snapshot of the nested list serializer as its own snapshot.This method transforms the incorrect list serializer snapshot to be a proper
ListViewSerializerSnapshot.- Specified by:
transformLegacySerializerSnapshotin interfaceorg.apache.flink.api.common.typeutils.LegacySerializerSnapshotTransformer<T>
-
-