Package org.radarbase.schema
Class SchemaCatalogue
java.lang.Object
org.radarbase.schema.SchemaCatalogue
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaCatalogue(Path root) SchemaCatalogue(Path root, org.radarbase.schema.Scope scope) -
Method Summary
Modifier and TypeMethodDescriptionorg.radarbase.topic.AvroTopic<org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord> getGenericAvroTopic(org.radarbase.config.AvroTopicConfig config) Returns an avro topic with the schemas from this catalogue.kotlin.Pair<SchemaMetadata,SchemaMetadata> getSchemaMetadata(org.radarbase.config.AvroTopicConfig config) Returns an avro topic with the schemas from this catalogue.
-
Constructor Details
-
SchemaCatalogue
- Throws:
IOException
-
SchemaCatalogue
- Throws:
IOException
-
-
Method Details
-
getGenericAvroTopic
public org.radarbase.topic.AvroTopic<org.apache.avro.generic.GenericRecord,org.apache.avro.generic.GenericRecord> getGenericAvroTopic(org.radarbase.config.AvroTopicConfig config) Returns an avro topic with the schemas from this catalogue.- Parameters:
config- avro topic configuration- Returns:
- AvroTopic with
- Throws:
NoSuchElementException- if the key or value schema do not exist in this catalogue.NullPointerException- if the key or value schema configurations are nullIllegalArgumentException- if the topic configuration is null
-
getSchemas
-
getUnmappedAvroFiles
-
getSchemaMetadata
public kotlin.Pair<SchemaMetadata,SchemaMetadata> getSchemaMetadata(org.radarbase.config.AvroTopicConfig config) Returns an avro topic with the schemas from this catalogue.- Parameters:
config- avro topic configuration- Returns:
- AvroTopic with
- Throws:
NoSuchElementException- if the key or value schema do not exist in this catalogue.NullPointerException- if the key or value schema configurations are nullIllegalArgumentException- if the topic configuration is null
-