public static class AvroSerializer.AvroSerializerConfigSnapshot<T> extends KryoRegistrationSerializerConfigSnapshot<T>
KryoRegistrationSerializerConfigSnapshot.DummyKryoSerializerClass<RC>, KryoRegistrationSerializerConfigSnapshot.DummyRegisteredClass| Constructor and Description |
|---|
AvroSerializer.AvroSerializerConfigSnapshot() |
AvroSerializer.AvroSerializerConfigSnapshot(Class<T> baseType,
Class<? extends T> typeToInstantiate,
LinkedHashMap<String,KryoRegistration> kryoRegistrations) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getTypeToInstantiate() |
int |
getVersion()
Returns the version number of the object.
|
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.
|
equals, getKryoRegistrations, hashCodegetTypeClassgetUserCodeClassLoader, setUserCodeClassLoadergetCompatibleVersions, getReadVersionpublic AvroSerializer.AvroSerializerConfigSnapshot()
public AvroSerializer.AvroSerializerConfigSnapshot(Class<T> baseType, Class<? extends T> typeToInstantiate, LinkedHashMap<String,KryoRegistration> kryoRegistrations)
public void write(DataOutputView out) throws IOException
IOReadableWritablewrite in interface IOReadableWritablewrite in class KryoRegistrationSerializerConfigSnapshot<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 KryoRegistrationSerializerConfigSnapshot<T>in - the input view to read the data fromIOException - thrown if any error occurs while reading from the input streampublic int getVersion()
VersionedCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.