@Internal public abstract class TypeSerializerSingleton<T> extends TypeSerializer<T>
Constructor and Description |
---|
TypeSerializerSingleton() |
Modifier and Type | Method and Description |
---|---|
TypeSerializerSingleton<T> |
duplicate()
Creates a deep copy of this serializer if it is necessary, i.e. if it is stateful.
|
boolean |
equals(Object obj) |
int |
hashCode() |
copy, copy, copy, createInstance, deserialize, deserialize, getLength, isImmutableType, serialize, snapshotConfiguration
public TypeSerializerSingleton<T> duplicate()
TypeSerializer
We need this because Serializers might be used in several threads. Stateless serializers are inherently thread-safe while stateful serializers might not be thread-safe.
duplicate
in class TypeSerializer<T>
public int hashCode()
hashCode
in class TypeSerializer<T>
public boolean equals(Object obj)
equals
in class TypeSerializer<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.