Package org.apache.calcite.avatica
Class ConnectionConfigImpl
java.lang.Object
org.apache.calcite.avatica.ConnectionConfigImpl
- All Implemented Interfaces:
ConnectionConfig
- Direct Known Subclasses:
AvaticaRemoteConnectionConfigImpl
Implementation of
ConnectionConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback to parse a property from string to its native type.static classThe combination of a property definition and a map of property values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConnectionConfigImpl.Converter<Boolean>static final ConnectionConfigImpl.Converter<String>static final ConnectionConfigImpl.Converter<Number>protected final Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum>
ConnectionConfigImpl.Converter<E>enumConverter(Class<E> enumClass) factory()keystore()static Map<ConnectionProperty,String> parse(Properties properties, Map<String, ? extends ConnectionProperty> nameToProps) Converts aPropertiesobject containing (name, value) pairs into a map whose keys areInternalPropertyobjects.static <T> ConnectionConfigImpl.Converter<T>pluginConverter(Class<T> pluginClass, T defaultInstance) schema()timeZone()booleanurl()
-
Field Details
-
properties
-
BOOLEAN_CONVERTER
-
NUMBER_CONVERTER
-
IDENTITY_CONVERTER
-
-
Constructor Details
-
ConnectionConfigImpl
-
-
Method Details
-
schema
- Specified by:
schemain interfaceConnectionConfig- See Also:
-
timeZone
- Specified by:
timeZonein interfaceConnectionConfig- See Also:
-
factory
- Specified by:
factoryin interfaceConnectionConfig- See Also:
-
url
- Specified by:
urlin interfaceConnectionConfig- See Also:
-
serialization
- Specified by:
serializationin interfaceConnectionConfig- See Also:
-
authentication
- Specified by:
authenticationin interfaceConnectionConfig- See Also:
-
avaticaUser
- Specified by:
avaticaUserin interfaceConnectionConfig- See Also:
-
avaticaPassword
- Specified by:
avaticaPasswordin interfaceConnectionConfig- See Also:
-
httpClientFactory
- Specified by:
httpClientFactoryin interfaceConnectionConfig- See Also:
-
httpClientClass
- Specified by:
httpClientClassin interfaceConnectionConfig- See Also:
-
kerberosPrincipal
- Specified by:
kerberosPrincipalin interfaceConnectionConfig- See Also:
-
kerberosKeytab
- Specified by:
kerberosKeytabin interfaceConnectionConfig- See Also:
-
truststore
- Specified by:
truststorein interfaceConnectionConfig- See Also:
-
truststorePassword
- Specified by:
truststorePasswordin interfaceConnectionConfig- See Also:
-
keystore
- Specified by:
keystorein interfaceConnectionConfig- See Also:
-
keystorePassword
- Specified by:
keystorePasswordin interfaceConnectionConfig- See Also:
-
keyPassword
- Specified by:
keyPasswordin interfaceConnectionConfig- See Also:
-
hostnameVerification
- Specified by:
hostnameVerificationin interfaceConnectionConfig- See Also:
-
transparentReconnectionEnabled
public boolean transparentReconnectionEnabled()- Specified by:
transparentReconnectionEnabledin interfaceConnectionConfig- See Also:
-
parse
public static Map<ConnectionProperty,String> parse(Properties properties, Map<String, ? extends ConnectionProperty> nameToProps) Converts aPropertiesobject containing (name, value) pairs into a map whose keys areInternalPropertyobjects.Matching is case-insensitive. Throws if a property is not known. If a property occurs more than once, takes the last occurrence.
- Parameters:
properties- Properties- Returns:
- Map
- Throws:
RuntimeException- if a property is not known
-
enumConverter
-
pluginConverter
public static <T> ConnectionConfigImpl.Converter<T> pluginConverter(Class<T> pluginClass, T defaultInstance)
-