Class LinkedListSerializer<T>
java.lang.Object
org.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
org.apache.flink.table.runtime.typeutils.LinkedListSerializer<T>
- Type Parameters:
T- The type of element in the list.
- All Implemented Interfaces:
Serializable
@Internal
public final class LinkedListSerializer<T>
extends org.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
A serializer for
LinkedList. The serializer relies on an element serializer for the
serialization of the list's elements.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLinkedListSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) Creates a list serializer that uses the given serializer to serialize the list's elements.LinkedListSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer, boolean hasNullMask) -
Method Summary
Modifier and TypeMethodDescriptioncopy(LinkedList<T> from) copy(LinkedList<T> from, LinkedList<T> reuse) voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) deserialize(LinkedList<T> reuse, org.apache.flink.core.memory.DataInputView source) deserialize(org.apache.flink.core.memory.DataInputView source) org.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>booleanorg.apache.flink.api.common.typeutils.TypeSerializer<T>Gets the serializer for the elements of the list.intinthashCode()booleanvoidserialize(LinkedList<T> list, org.apache.flink.core.memory.DataOutputView target) org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<LinkedList<T>>
-
Constructor Details
-
LinkedListSerializer
public LinkedListSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) Creates a list serializer that uses the given serializer to serialize the list's elements.- Parameters:
elementSerializer- The serializer for the elements of the list
-
LinkedListSerializer
public LinkedListSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer, boolean hasNullMask)
-
-
Method Details
-
getElementSerializer
Gets the serializer for the elements of the list.- Returns:
- The serializer for the elements of the list
-
isImmutableType
public boolean isImmutableType()- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
duplicate
- Specified by:
duplicatein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
createInstance
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
copy
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
copy
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
getLength
public int getLength()- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
serialize
public void serialize(LinkedList<T> list, org.apache.flink.core.memory.DataOutputView target) throws IOException - Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>- Throws:
IOException
-
deserialize
public LinkedList<T> deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException - Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>- Throws:
IOException
-
deserialize
public LinkedList<T> deserialize(LinkedList<T> reuse, org.apache.flink.core.memory.DataInputView source) throws IOException - Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>- 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<LinkedList<T>>- Throws:
IOException
-
equals
- Specified by:
equalsin classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-
snapshotConfiguration
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<LinkedList<T>> snapshotConfiguration()- Specified by:
snapshotConfigurationin classorg.apache.flink.api.common.typeutils.TypeSerializer<LinkedList<T>>
-