D - the subtype of [[GenericContainer]] handled by this serializerpublic class GenericAvroSerializer<D extends org.apache.avro.generic.GenericContainer>
extends com.esotericsoftware.kryo.Serializer<D>
Heavily adapted from:
As SerializationUtils is not shared between threads and does not concern any
shuffling operations, compression and decompression cache is omitted as network IO is not a concern.
Unlike Spark's implementation, the class and constructor is not initialized with a predefined map of avro schemas. This is the case as schemas to read and write are not known beforehand.
| Constructor and Description |
|---|
GenericAvroSerializer() |
| Modifier and Type | Method and Description |
|---|---|
D |
read(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Input input,
Class<D> datumClass) |
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
D datum) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.