Package org.apache.drill.exec.store.dfs
Class FileSystemConfig
java.lang.Object
org.apache.drill.common.logical.StoragePluginConfig
org.apache.drill.exec.store.dfs.FileSystemConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.common.logical.StoragePluginConfig
StoragePluginConfig.AuthMode
-
Field Summary
Fields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled
-
Constructor Summary
ConstructorDescriptionFileSystemConfig
(String connection, List<String> mountCommand, List<String> unmountCommand, Map<String, String> config, Map<String, WorkspaceConfig> workspaces, Map<String, FormatPluginConfig> formats, OAuthConfig oAuthConfig, String authMode, CredentialsProvider credentialsProvider) FileSystemConfig
(String connection, Map<String, String> config, Map<String, WorkspaceConfig> workspaces, Map<String, FormatPluginConfig> formats, OAuthConfig oAuthConfig, CredentialsProvider credentialsProvider) FileSystemConfig
(String connection, Map<String, String> config, Map<String, WorkspaceConfig> workspaces, Map<String, FormatPluginConfig> formats, CredentialsProvider credentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copy the file system configuration.copyWithFormats
(Map<String, FormatPluginConfig> newFormats) Copy this file system config with the set of new/replaced formats.boolean
int
hashCode()
toString()
Methods inherited from class org.apache.drill.common.logical.StoragePluginConfig
getAuthMode, getCredentialsProvider, isEnabled, isEnabledStatusPresent, oAuthConfig, setEnabled, updateCredentialProvider
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
FileSystemConfig
public FileSystemConfig(String connection, Map<String, String> config, Map<String, WorkspaceConfig> workspaces, Map<String, FormatPluginConfig> formats, OAuthConfig oAuthConfig, CredentialsProvider credentialsProvider) -
FileSystemConfig
public FileSystemConfig(String connection, Map<String, String> config, Map<String, WorkspaceConfig> workspaces, Map<String, FormatPluginConfig> formats, CredentialsProvider credentialsProvider) -
FileSystemConfig
public FileSystemConfig(String connection, List<String> mountCommand, List<String> unmountCommand, Map<String, String> config, Map<String, WorkspaceConfig> workspaces, Map<String, FormatPluginConfig> formats, OAuthConfig oAuthConfig, String authMode, CredentialsProvider credentialsProvider)
-
-
Method Details
-
getConnection
-
getMountCommand
-
getUnmountCommand
-
getConfig
-
getWorkspaces
-
getFormats
-
getValue
- Overrides:
getValue
in classStoragePluginConfig
-
hashCode
public int hashCode()- Specified by:
hashCode
in classStoragePluginConfig
-
equals
- Specified by:
equals
in classStoragePluginConfig
-
toString
-
copy
Copy the file system configuration. This must be done prior to modifying a config already stored in the registry. The registry maintains a key based on config value.- Returns:
- a copy of this config which may be modified
-
copyWithFormats
Copy this file system config with the set of new/replaced formats. This must be done if the file system config is already stored in the plugin registry- Parameters:
newFormats
- optional new formats to add- Returns:
- copy with the new formats
-