public static class AvroSerializer.AvroSerializerConfigSnapshot<T> extends KryoRegistrationSerializerConfigSnapshot<T>
KryoRegistrationSerializerConfigSnapshot.DummyKryoSerializerClass<RC>, KryoRegistrationSerializerConfigSnapshot.DummyRegisteredClass
Constructor and Description |
---|
AvroSerializerConfigSnapshot() |
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, hashCode
getTypeClass
getUserCodeClassLoader, setUserCodeClassLoader
getCompatibleVersions, getReadVersion
public AvroSerializerConfigSnapshot()
public AvroSerializerConfigSnapshot(Class<T> baseType, Class<? extends T> typeToInstantiate, LinkedHashMap<String,KryoRegistration> kryoRegistrations)
public void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
write
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
IOReadableWritable
read
in interface IOReadableWritable
read
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()
Versioned
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.