Package org.apache.drill.common.config
Class DrillProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.drill.common.config.DrillProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.drill.shaded.guava.com.google.common.collect.ImmutableSet<String>
static final org.apache.drill.shaded.guava.com.google.common.collect.ImmutableSet<String>
static final String
static final String
static final String
static final String
static final String
static final String
Impersonation target name for Drill Inbound Impersonationstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class java.util.Properties
defaults
-
Method Summary
Modifier and TypeMethodDescriptionstatic DrillProperties
static DrillProperties
createFromProperties
(Properties properties) Returns a new instance of DrillProperties from the given properties.static DrillProperties
createFromProperties
(UserProtos.UserProperties userProperties, boolean addOnlyKnownServerProperties) Deserializes the given properties into DrillProperties.getProperty
(String key) getProperty
(String key, String defaultValue) void
void
merge
(Properties overrides) Serializes properties into a protobuf message.setProperty
(String key, String value) Returns a map of keys and values in this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.Methods inherited from class java.util.Properties
list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
Methods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
Field Details
-
ZOOKEEPER_CONNECTION
- See Also:
-
DRILLBIT_CONNECTION
- See Also:
-
TRIES
- See Also:
-
SCHEMA
- See Also:
-
USER
- See Also:
-
PASSWORD
- See Also:
-
IMPERSONATION_TARGET
Impersonation target name for Drill Inbound Impersonation- See Also:
-
AUTH_MECHANISM
- See Also:
-
SERVICE_PRINCIPAL
- See Also:
-
SERVICE_NAME
- See Also:
-
SERVICE_HOST
- See Also:
-
REALM
- See Also:
-
KEYTAB
- See Also:
-
SASL_ENCRYPT
- See Also:
-
TEST_SASL_LEVEL
- See Also:
-
KERBEROS_FROM_SUBJECT
- See Also:
-
QUOTING_IDENTIFIERS
- See Also:
-
ENABLE_TLS
- See Also:
-
TLS_PROTOCOL
- See Also:
-
TRUSTSTORE_TYPE
- See Also:
-
TRUSTSTORE_PATH
- See Also:
-
TRUSTSTORE_PASSWORD
- See Also:
-
DISABLE_HOST_VERIFICATION
- See Also:
-
DISABLE_CERT_VERIFICATION
- See Also:
-
TLS_HANDSHAKE_TIMEOUT
- See Also:
-
TLS_PROVIDER
- See Also:
-
USE_SYSTEM_TRUSTSTORE
- See Also:
-
USE_MAPR_SSL_CONFIG
- See Also:
-
QUERY_TAGS
- See Also:
-
ALLOWED_BY_CLIENT
public static final org.apache.drill.shaded.guava.com.google.common.collect.ImmutableSet<String> ALLOWED_BY_CLIENT -
ACCEPTED_BY_SERVER
public static final org.apache.drill.shaded.guava.com.google.common.collect.ImmutableSet<String> ACCEPTED_BY_SERVER
-
-
Method Details
-
setProperty
- Overrides:
setProperty
in classProperties
-
getProperty
- Overrides:
getProperty
in classProperties
-
getProperty
- Overrides:
getProperty
in classProperties
-
merge
-
merge
-
stringPropertiesAsMap
Returns a map of keys and values in this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list. Properties whose key or value is not of type String are omitted.The returned map is not backed by the Properties object. Changes to this Properties are not reflected in the map, or vice versa.
- Returns:
- a map of keys and values in this property list where the key and its corresponding value are strings, including the keys in the default property list.
-
serializeForServer
Serializes properties into a protobuf message.- Returns:
- the serialized properties
-
createFromProperties
public static DrillProperties createFromProperties(UserProtos.UserProperties userProperties, boolean addOnlyKnownServerProperties) Deserializes the given properties into DrillProperties.- Parameters:
userProperties
- serialized user propertiesaddOnlyKnownServerProperties
- add only properties known by server- Returns:
- params
-
createFromProperties
Returns a new instance of DrillProperties from the given properties.- Parameters:
properties
- user properties- Returns:
- params
-
createEmpty
-