All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.radarbase.producer.rest.AvroDataMapper Maven / Gradle / Ivy

package org.radarbase.producer.rest;

import org.apache.avro.Schema;

/**
 * Maps data from one avro record schema to another. Create it by calling
 * {@link AvroDataMapperFactory#createMapper(Schema, Schema, Object)}.
 */
public interface AvroDataMapper {
    /**
     * Convert an Avro GenericData to another Avro GenericData representation.
     * @param object Avro object
     * @return Avro object
     */
    Object convertAvro(Object object);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy