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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes schema.booleanexists()Checks if schema exists.read()Reads schema intoSchemaContainer.voidStores given schema definition and properties.
-
Constructor Details
-
InlineSchemaProvider
-
-
Method Details
-
delete
public void delete()Description copied from interface:SchemaProviderDeletes schema.- Specified by:
deletein interfaceSchemaProvider
-
store
public void store(String schema, Map<String, String> properties, StorageProperties storageProperties) Description copied from interface:SchemaProviderStores given schema definition and properties.- Specified by:
storein interfaceSchemaProvider- Parameters:
schema- schema definitionproperties- map of propertiesstorageProperties- storage properties
-
read
Description copied from interface:SchemaProviderReads schema intoSchemaContainer. Depending on implementation, can read from a file or from the given input.- Specified by:
readin interfaceSchemaProvider- Returns:
- table schema instance
- Throws:
IOException
-
exists
public boolean exists()Description copied from interface:SchemaProviderChecks if schema exists.- Specified by:
existsin interfaceSchemaProvider- Returns:
- true if schema exists, false otherwise
-