-
- All Implemented Interfaces:
public final class SchemaCatalogue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSchemaCatalogue.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, SchemaMetadata>schemasprivate final List<SchemaMetadata>unmappedAvroFiles
-
Constructor Summary
Constructors Constructor Description SchemaCatalogue(Path schemaRoot, SchemaConfig config, Scope scope)SchemaCatalogue(Path schemaRoot, SchemaConfig config)
-
Method Summary
Modifier and Type Method Description final Map<String, SchemaMetadata>getSchemas()final List<SchemaMetadata>getUnmappedAvroFiles()final AvroTopic<GenericRecord, GenericRecord>getGenericAvroTopic(AvroTopicConfig config)Returns an avro topic with the schemas from this catalogue. final Pair<SchemaMetadata, SchemaMetadata>getSchemaMetadata(AvroTopicConfig config)Returns an avro topic with the schemas from this catalogue. -
-
Constructor Detail
-
SchemaCatalogue
SchemaCatalogue(Path schemaRoot, SchemaConfig config, Scope scope)
-
SchemaCatalogue
SchemaCatalogue(Path schemaRoot, SchemaConfig config)
-
-
Method Detail
-
getSchemas
final Map<String, SchemaMetadata> getSchemas()
-
getUnmappedAvroFiles
final List<SchemaMetadata> getUnmappedAvroFiles()
-
getGenericAvroTopic
final AvroTopic<GenericRecord, GenericRecord> getGenericAvroTopic(AvroTopicConfig config)
Returns an avro topic with the schemas from this catalogue.
- Parameters:
config- avro topic configuration
-
getSchemaMetadata
final Pair<SchemaMetadata, SchemaMetadata> getSchemaMetadata(AvroTopicConfig config)
Returns an avro topic with the schemas from this catalogue.
- Parameters:
config- avro topic configuration
-
-
-
-