public class AvroSchemaGlossary extends Object
AvroSchemaGlossary class is used for management of AVRO data model schema definitions.| Constructor and Description |
|---|
AvroSchemaGlossary(AvroSchemaLoader avroSchemaLoader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure()
Configures the
AvroSchemaGlossary with the schemas accessible through the AvroSchemaLoader. |
org.apache.avro.Schema |
get(String name,
long revision)
Retrieves the
Schema from the glossary. |
Collection<org.apache.avro.Schema> |
getAll()
Retrieves all of the
Schema contained within the glossary. |
void |
setAvroSchemaLoader(AvroSchemaLoader avroSchemaLoader)
Setter for the
AvroSchemaLoader to use when populating the glossary. |
public AvroSchemaGlossary(AvroSchemaLoader avroSchemaLoader)
public void setAvroSchemaLoader(AvroSchemaLoader avroSchemaLoader)
AvroSchemaLoader to use when populating the glossary.avroSchemaLoader - the loader used to populate the glossary.public boolean configure()
AvroSchemaGlossary with the schemas accessible through the AvroSchemaLoader.public org.apache.avro.Schema get(String name, long revision)
Schema from the glossary.name - the name of the schema to retrieve.revision - the revision of the schema to retrieve.Schema if found, otherwise null.public Collection<org.apache.avro.Schema> getAll()
Schema contained within the glossary.SchemaCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.