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
Fields inherited from class org.apache.drill.common.logical.StoragePluginConfig
authMode, credentialsProvider, directCredentials, enabled, oAuthConfig
-
Constructor Summary
ConstructorDescriptionElasticsearchStorageConfig
(List<String> hosts, String username, String password, String pathPrefix, String authMode, boolean disableSSLVerification, CredentialsProvider credentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getHosts()
getUsernamePasswordCredentials
(String username) Gets the credentials.int
hashCode()
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:
updateCredentialProvider
in classStoragePluginConfig
-
getHosts
-
getPathPrefix
-
getDisableSSLVerification
public boolean getDisableSSLVerification() -
getUsernamePasswordCredentials
-
getUsernamePasswordCredentials
Gets the credentials. This method is used when user translation is enabled.- Returns:
- An
Optional
containingUsernamePasswordCredentials
from 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:
equals
in classStoragePluginConfig
-
hashCode
public int hashCode()- Specified by:
hashCode
in classStoragePluginConfig
-
toString
-