Class FsMetastoreSchemaProvider
java.lang.Object
org.apache.drill.exec.record.metadata.schema.PathSchemaProvider
org.apache.drill.exec.record.metadata.schema.FsMetastoreSchemaProvider
- All Implemented Interfaces:
SchemaProvider
Is used to provide schema based on table location on file system
and default schema file name
SchemaProvider.DEFAULT_SCHEMA_NAME
.-
Field Summary
Fields inherited from class org.apache.drill.exec.record.metadata.schema.PathSchemaProvider
READER, WRITER
Fields inherited from interface org.apache.drill.exec.record.metadata.schema.SchemaProvider
DEFAULT_SCHEMA_NAME
-
Constructor Summary
ConstructorDescriptionFsMetastoreSchemaProvider
(WorkspaceSchemaFactory.WorkspaceSchema wsSchema, String tableName) -
Method Summary
Modifier and TypeMethodDescriptionprotected SchemaContainer
createTableSchema
(String schema, Map<String, String> properties) Methods inherited from class org.apache.drill.exec.record.metadata.schema.PathSchemaProvider
delete, exists, read, store
-
Constructor Details
-
FsMetastoreSchemaProvider
public FsMetastoreSchemaProvider(WorkspaceSchemaFactory.WorkspaceSchema wsSchema, String tableName) throws IOException - Throws:
IOException
-
-
Method Details
-
createTableSchema
protected SchemaContainer createTableSchema(String schema, Map<String, String> properties) throws IOException- Overrides:
createTableSchema
in classPathSchemaProvider
- Throws:
IOException
-