Search in sources :

Example 1 with AvroSchemaResolver

use of com.hortonworks.registries.schemaregistry.avro.AvroSchemaResolver in project registry by hortonworks.

the class AbstractAvroSnapshotDeserializer method doInit.

@Override
public void doInit(Map<String, ?> config) {
    super.doInit(config);
    SchemaVersionRetriever schemaVersionRetriever = createSchemaVersionRetriever();
    avroSchemaResolver = new AvroSchemaResolver(schemaVersionRetriever);
    useSpecificAvroReader = (boolean) getValue(config, SPECIFIC_AVRO_READER, false);
}
Also used : SchemaVersionRetriever(com.hortonworks.registries.schemaregistry.SchemaVersionRetriever) AvroSchemaResolver(com.hortonworks.registries.schemaregistry.avro.AvroSchemaResolver)

Aggregations

SchemaVersionRetriever (com.hortonworks.registries.schemaregistry.SchemaVersionRetriever)1 AvroSchemaResolver (com.hortonworks.registries.schemaregistry.avro.AvroSchemaResolver)1