public interface SchemaProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCHEMA_NAME
Default schema file name where schema is stored on file system.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes schema.
|
boolean |
exists()
Checks if schema exists.
|
SchemaContainer |
read()
Reads schema into
SchemaContainer. |
void |
store(String schema,
Map<String,String> properties,
StorageProperties storageProperties)
Stores given schema definition and properties.
|
static final String DEFAULT_SCHEMA_NAME
void delete()
throws IOException
IOExceptionvoid store(String schema, Map<String,String> properties, StorageProperties storageProperties) throws IOException
schema - schema definitionproperties - map of propertiesstorageProperties - storage propertiesIOExceptionSchemaContainer read() throws IOException
SchemaContainer. Depending on implementation, can read from a file
or from the given input.IOExceptionboolean exists()
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.