Class ElasticsearchStorageConfig
java.lang.Object
org.apache.drill.common.logical.StoragePluginConfig
org.apache.drill.exec.store.elasticsearch.ElasticsearchStorageConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.common.logical.StoragePluginConfig
StoragePluginConfig.AuthMode -
Field Summary
FieldsFields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled, oAuthConfig -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchStorageConfig(List<String> hosts, String username, String password, String pathPrefix, String authMode, boolean disableSSLVerification, CredentialsProvider credentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetHosts()getUsernamePasswordCredentials(String username) Gets the credentials.inthashCode()toConfigMap(String queryUser) This method is used when user translation is enabled.toString()updateCredentialProvider(CredentialsProvider credentialsProvider) Methods inherited from class org.apache.drill.common.logical.StoragePluginConfig
getAuthMode, getCredentialsProvider, getValue, isEnabled, isEnabledStatusPresent, oAuthConfig, setEnabled
-
Field Details
-
NAME
- See Also:
-
CREDENTIALS_PROVIDER
- See Also:
-
-
Constructor Details
-
ElasticsearchStorageConfig
-
-
Method Details
-
updateCredentialProvider
- Overrides:
updateCredentialProviderin classStoragePluginConfig
-
getHosts
-
getPathPrefix
-
getDisableSSLVerification
public boolean getDisableSSLVerification() -
getUsernamePasswordCredentials
-
getUsernamePasswordCredentials
Gets the credentials. This method is used when user translation is enabled.- Returns:
- An
OptionalcontainingUsernamePasswordCredentialsfrom the config.
-
toConfigMap
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
toConfigMap
public Map<String,Object> toConfigMap(String queryUser) throws com.fasterxml.jackson.core.JsonProcessingException This method is used when user translation is enabled.- Parameters:
queryUser- The user who submitted the query- Returns:
- A map of the configuration details.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- If JSON is unparsable, throw exception
-
equals
- Specified by:
equalsin classStoragePluginConfig
-
hashCode
public int hashCode()- Specified by:
hashCodein classStoragePluginConfig
-
toString
-