T - the data type that the Kryo serializer handles.@Internal public abstract class KryoRegistrationSerializerConfigSnapshot<T> extends GenericTypeSerializerConfigSnapshot<T>
The configuration captures the order of Kryo serializer registrations, so that new Kryo serializers can determine how to reconfigure their registration order to retain backwards compatibility.
| Modifier and Type | Class and Description |
|---|---|
static class |
KryoRegistrationSerializerConfigSnapshot.DummyKryoSerializerClass<RC>
Placeholder dummy for a previously registered Kryo serializer that is no longer valid or in classpath on restore.
|
static class |
KryoRegistrationSerializerConfigSnapshot.DummyRegisteredClass
Placeholder dummy for a previously registered class that can no longer be found in classpath on restore.
|
| Constructor and Description |
|---|
KryoRegistrationSerializerConfigSnapshot()
This empty nullary constructor is required for deserializing the configuration.
|
KryoRegistrationSerializerConfigSnapshot(Class<T> typeClass,
LinkedHashMap<String,KryoRegistration> kryoRegistrations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LinkedHashMap<String,KryoRegistration> |
getKryoRegistrations() |
int |
hashCode() |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
getTypeClassgetUserCodeClassLoader, setUserCodeClassLoadergetCompatibleVersions, getReadVersionclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetVersionpublic KryoRegistrationSerializerConfigSnapshot()
public KryoRegistrationSerializerConfigSnapshot(Class<T> typeClass, LinkedHashMap<String,KryoRegistration> kryoRegistrations)
public void write(DataOutputView out) throws IOException
IOReadableWritablewrite in interface IOReadableWritablewrite 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
IOReadableWritableread in interface IOReadableWritableread in class GenericTypeSerializerConfigSnapshot<T>in - the input view to read the data fromIOException - thrown if any error occurs while reading from the input streampublic LinkedHashMap<String,KryoRegistration> getKryoRegistrations()
public boolean equals(Object obj)
equals in class GenericTypeSerializerConfigSnapshot<T>public int hashCode()
hashCode in class GenericTypeSerializerConfigSnapshot<T>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.