PojoSerializerSnapshot
.@Deprecated public static final class PojoSerializer.PojoSerializerConfigSnapshot<T> extends GenericTypeSerializerConfigSnapshot<T>
TypeSerializerConfigSnapshot.SelfResolvingTypeSerializer<E>
Constructor and Description |
---|
PojoSerializerConfigSnapshot()
Deprecated.
This empty nullary constructor is required for deserializing the configuration.
|
PojoSerializerConfigSnapshot(Class<T> pojoType,
LinkedHashMap<String,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> fieldToSerializerConfigSnapshot,
LinkedHashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> registeredSubclassesToSerializerConfigSnapshots,
HashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> nonRegisteredSubclassesToSerializerConfigSnapshots)
Deprecated.
|
PojoSerializerConfigSnapshot(Class<T> pojoType,
LinkedHashMap<String,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> fieldToSerializerConfigSnapshot,
LinkedHashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> registeredSubclassesToSerializerConfigSnapshots,
HashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> nonRegisteredSubclassesToSerializerConfigSnapshots,
boolean ignoreTypeSerializerSerialization)
Deprecated.
|
getTypeClass
getCurrentVersion, getUserCodeClassLoader, readSnapshot, restoreSerializer, setPriorSerializer, setUserCodeClassLoader, writeSnapshot
getCompatibleVersions, getReadVersion
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
readVersionedSnapshot, writeVersionedSnapshot
public PojoSerializerConfigSnapshot()
public PojoSerializerConfigSnapshot(Class<T> pojoType, LinkedHashMap<String,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> fieldToSerializerConfigSnapshot, LinkedHashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> registeredSubclassesToSerializerConfigSnapshots, HashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> nonRegisteredSubclassesToSerializerConfigSnapshots)
public PojoSerializerConfigSnapshot(Class<T> pojoType, LinkedHashMap<String,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> fieldToSerializerConfigSnapshot, LinkedHashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> registeredSubclassesToSerializerConfigSnapshots, HashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> nonRegisteredSubclassesToSerializerConfigSnapshots, boolean ignoreTypeSerializerSerialization)
public TypeSerializerSchemaCompatibility<T> resolveSchemaCompatibility(TypeSerializer<T> newSerializer)
PojoSerializerSnapshot
.resolveSchemaCompatibility
in interface TypeSerializerSnapshot<T>
resolveSchemaCompatibility
in class TypeSerializerConfigSnapshot<T>
newSerializer
- the new serializer to check.public void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
write
in class GenericTypeSerializerConfigSnapshot<T>
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
read
in interface IOReadableWritable
read
in class GenericTypeSerializerConfigSnapshot<T>
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streampublic int getVersion()
Versioned
public LinkedHashMap<String,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> getFieldToSerializerConfigSnapshot()
public LinkedHashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> getRegisteredSubclassesToSerializerConfigSnapshots()
public HashMap<Class<?>,Tuple2<TypeSerializer<?>,TypeSerializerSnapshot<?>>> getNonRegisteredSubclassesToSerializerConfigSnapshots()
public boolean equals(Object obj)
equals
in class GenericTypeSerializerConfigSnapshot<T>
public int hashCode()
hashCode
in class GenericTypeSerializerConfigSnapshot<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.