T - The type of element in the list.@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>>
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.
| Constructor and Description |
|---|
ListViewSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<List<T>> listSerializer)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(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.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
getLength()
Deprecated.
|
org.apache.flink.api.common.typeutils.TypeSerializer<List<T>> |
getListSerializer()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isImmutableType()
Deprecated.
|
void |
serialize(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 a
LegacySerializerSnapshotTransformer because in Flink
1.6.x and below, this serializer was incorrectly returning directly the snapshot of the
nested list serializer as its own snapshot. |
public boolean isImmutableType()
public org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>> duplicate()
public int getLength()
public void serialize(ListView<T> record, org.apache.flink.core.memory.DataOutputView target) throws IOException
serialize in class org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>IOExceptionpublic ListView<T> deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>IOExceptionpublic ListView<T> deserialize(ListView<T> reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>IOExceptionpublic void copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<ListView<T>>IOExceptionpublic boolean equals(Object obj)
public int hashCode()
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<ListView<T>> snapshotConfiguration()
public <U> org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<ListView<T>> transformLegacySerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<U> legacySnapshot)
LegacySerializerSnapshotTransformer because 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.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.