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:
-
Constructor Summary
ConstructorsConstructorDescriptionListViewSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<List<T>> listSerializer) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) Deprecated.Deprecated.Deprecated.Deprecated.deserialize(org.apache.flink.core.memory.DataInputView source) Deprecated.deserialize(ListView<T> reuse, org.apache.flink.core.memory.DataInputView source) Deprecated.Deprecated.booleanDeprecated.intDeprecated.Deprecated.inthashCode()Deprecated.booleanDeprecated.voidDeprecated.Deprecated.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.
-
Constructor Details
-
Method Details
-
isImmutableType
public boolean isImmutableType()Deprecated. -
duplicate
Deprecated. -
createInstance
Deprecated. -
copy
Deprecated. -
copy
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 IOException Deprecated.- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>- Throws:
IOException
-
equals
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>
-
getListSerializer
Deprecated.
-