Class InlineSchemaProvider
java.lang.Object
org.apache.drill.exec.record.metadata.schema.InlineSchemaProvider
- All Implemented Interfaces:
SchemaProvider
Is used to provide schema when passed using table function.
-
Field Summary
Fields inherited from interface org.apache.drill.exec.record.metadata.schema.SchemaProvider
DEFAULT_SCHEMA_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes schema.boolean
exists()
Checks if schema exists.read()
Reads schema intoSchemaContainer
.void
Stores given schema definition and properties.
-
Constructor Details
-
InlineSchemaProvider
-
-
Method Details
-
delete
public void delete()Description copied from interface:SchemaProvider
Deletes schema.- Specified by:
delete
in interfaceSchemaProvider
-
store
public void store(String schema, Map<String, String> properties, StorageProperties storageProperties) Description copied from interface:SchemaProvider
Stores given schema definition and properties.- Specified by:
store
in interfaceSchemaProvider
- Parameters:
schema
- schema definitionproperties
- map of propertiesstorageProperties
- storage properties
-
read
Description copied from interface:SchemaProvider
Reads schema intoSchemaContainer
. Depending on implementation, can read from a file or from the given input.- Specified by:
read
in interfaceSchemaProvider
- Returns:
- table schema instance
- Throws:
IOException
-
exists
public boolean exists()Description copied from interface:SchemaProvider
Checks if schema exists.- Specified by:
exists
in interfaceSchemaProvider
- Returns:
- true if schema exists, false otherwise
-