public class WorkspaceSchemaFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WorkspaceSchemaFactory.TableInstance |
class |
WorkspaceSchemaFactory.WorkspaceSchema |
Constructor and Description |
---|
WorkspaceSchemaFactory(FileSystemPlugin plugin,
String schemaName,
String storageEngineName,
WorkspaceConfig config,
List<FormatMatcher> formatMatchers,
com.fasterxml.jackson.databind.ObjectMapper mapper,
ScanResult scanResult) |
Modifier and Type | Method and Description |
---|---|
boolean |
accessible(DrillFileSystem fs)
Checks whether a FileSystem object has the permission to list/read workspace directory
|
boolean |
accessible(String userName)
Checks whether the given user has permission to list files/directories under the workspace directory.
|
WorkspaceSchemaFactory.WorkspaceSchema |
createSchema(List<String> parentSchemaPath,
SchemaConfig schemaConfig,
DrillFileSystem fs) |
FileSystemPlugin |
getPlugin() |
String |
getSchemaName() |
public WorkspaceSchemaFactory(FileSystemPlugin plugin, String schemaName, String storageEngineName, WorkspaceConfig config, List<FormatMatcher> formatMatchers, com.fasterxml.jackson.databind.ObjectMapper mapper, ScanResult scanResult) throws ExecutionSetupException
ExecutionSetupException
public boolean accessible(String userName) throws IOException
userName
- User who is trying to access the workspace.IOException
public boolean accessible(DrillFileSystem fs) throws IOException
fs
- a DrillFileSystem object that was created with certain user privilegeIOException
public WorkspaceSchemaFactory.WorkspaceSchema createSchema(List<String> parentSchemaPath, SchemaConfig schemaConfig, DrillFileSystem fs) throws IOException
IOException
public String getSchemaName()
public FileSystemPlugin getPlugin()
Copyright © 1970 The Apache Software Foundation. All rights reserved.