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
ExecutionSetupExceptionpublic boolean accessible(String userName) throws IOException
userName - User who is trying to access the workspace.IOExceptionpublic boolean accessible(DrillFileSystem fs) throws IOException
fs - a DrillFileSystem object that was created with certain user privilegeIOExceptionpublic WorkspaceSchemaFactory.WorkspaceSchema createSchema(List<String> parentSchemaPath, SchemaConfig schemaConfig, DrillFileSystem fs) throws IOException
IOExceptionpublic String getSchemaName()
public FileSystemPlugin getPlugin()
Copyright © 2021 The Apache Software Foundation. All rights reserved.