Package org.apache.drill.exec.store.dfs
Class WorkspaceSchemaFactory
java.lang.Object
org.apache.drill.exec.store.dfs.WorkspaceSchemaFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classclass -
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceSchemaFactory(FileSystemPlugin plugin, String schemaName, String storageEngineName, WorkspaceConfig config, List<FormatMatcher> formatMatchers, com.fasterxml.jackson.databind.ObjectMapper mapper, ScanResult scanResult) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccessible(String userName) Checks whether the given user has permission to list files/directories under the workspace directory.booleanChecks whether a FileSystem object has the permission to list/read workspace directorycreateSchema(List<String> parentSchemaPath, SchemaConfig schemaConfig, DrillFileSystem fs)
-
Constructor Details
-
WorkspaceSchemaFactory
public WorkspaceSchemaFactory(FileSystemPlugin plugin, String schemaName, String storageEngineName, WorkspaceConfig config, List<FormatMatcher> formatMatchers, com.fasterxml.jackson.databind.ObjectMapper mapper, ScanResult scanResult) throws ExecutionSetupException - Throws:
ExecutionSetupException
-
-
Method Details
-
accessible
Checks whether the given user has permission to list files/directories under the workspace directory.- Parameters:
userName- User who is trying to access the workspace.- Returns:
- True if the user has access. False otherwise.
- Throws:
IOException
-
accessible
Checks whether a FileSystem object has the permission to list/read workspace directory- Parameters:
fs- a DrillFileSystem object that was created with certain user privilege- Returns:
- True if the user has access. False otherwise.
- Throws:
IOException
-
createSchema
public WorkspaceSchemaFactory.WorkspaceSchema createSchema(List<String> parentSchemaPath, SchemaConfig schemaConfig, DrillFileSystem fs) throws IOException - Throws:
IOException
-
getSchemaName
-
getPlugin
-