Class RegistryBasedDomainMapper<V,S extends org.apache.avro.generic.GenericRecord>
- java.lang.Object
-
- io.simplesource.kafka.serialization.avro.mappers.RegistryBasedDomainMapper<V,S>
-
- Type Parameters:
V- Base class for all supported domain classes in the registryS- Avro base serialized class. Most of the cases this will beGenericRecord
- All Implemented Interfaces:
GenericMapper<V,S>
public final class RegistryBasedDomainMapper<V,S extends org.apache.avro.generic.GenericRecord> extends Object implements GenericMapper<V,S>
Domain mapper implementation using registry for all supported domain-serialized class combinations
-
-
Method Detail
-
toGeneric
public S toGeneric(V value)
- Specified by:
toGenericin interfaceGenericMapper<V,S extends org.apache.avro.generic.GenericRecord>
-
fromGeneric
public V fromGeneric(S serialized)
- Specified by:
fromGenericin interfaceGenericMapper<V,S extends org.apache.avro.generic.GenericRecord>
-
-