Class SchemaCatalogue

java.lang.Object
org.radarbase.schema.SchemaCatalogue

public class SchemaCatalogue extends Object
  • Constructor Details

  • 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 null
      IllegalArgumentException - if the topic configuration is null
    • getSchemas

      public Map<String,SchemaMetadata> getSchemas()
    • getUnmappedAvroFiles

      public List<SchemaMetadata> 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 null
      IllegalArgumentException - if the topic configuration is null