public final class HTTPSchemaLoader extends Object implements AvroSchemaLoader
HTTPSchemaLoader object loads an AVRO data model schema at a given url.| Constructor and Description |
|---|
HTTPSchemaLoader(String baseUrl,
String manifestName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.collections4.SetValuedMap<String,org.apache.avro.Schema> |
load()
Loads the data models located at the url.
|
public org.apache.commons.collections4.SetValuedMap<String,org.apache.avro.Schema> load() throws IOException
Manifest.
If the loader is unable to download the manifest or referenced data models,
the load will throw an exception. Below is an example manifest file.
{
"standards": {
"OMOP_6_0_0": {
"format": "avsc"
}
}
}load in interface AvroSchemaLoaderIOException - when the manifest is missing or a parsing error.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.