Package org.apache.calcite.avatica
Enum BuiltInConnectionProperty
- java.lang.Object
-
- java.lang.Enum<BuiltInConnectionProperty>
-
- org.apache.calcite.avatica.BuiltInConnectionProperty
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BuiltInConnectionProperty>,ConnectionProperty
public enum BuiltInConnectionProperty extends java.lang.Enum<BuiltInConnectionProperty> implements ConnectionProperty
Enumeration of Avatica's built-in connection properties.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.avatica.ConnectionProperty
ConnectionProperty.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATIONThe type of authentication to be usedAVATICA_PASSWORDAvatica-based authentication passwordAVATICA_USERAvatica-based authentication user nameFACTORYFactory.HOSTNAME_VERIFICATIONHTTP_CLIENT_FACTORYFactory for constructing http clients.HTTP_CLIENT_IMPLHttpClient implementation class name.KEY_PASSWORDPassword for the key inside keystoreKEYSTOREKeystore for MTLS authenticationKEYSTORE_PASSWORDPassword for the keystoreKEYTABKeytab to use to perform Kerberos login.PRINCIPALPrincipal to use to perform Kerberos login.SCHEMAName of initial schema.SERIALIZATIONSerialization used over remote connectionsTIME_ZONETime zone, for example 'gmt-3'.TRUSTSTORETruststore for SSL/TLS communicationTRUSTSTORE_PASSWORDPassword for the truststoreURLRemote URL.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcamelNameprivate java.lang.ObjectdefaultValueprivate static java.util.Set<java.lang.String>LOCAL_PROPSprivate static java.util.Map<java.lang.String,BuiltInConnectionProperty>NAME_TO_PROPSprivate booleanrequiredstatic BuiltInConnectionPropertyTIMEZONEDeprecated.private ConnectionProperty.Typetypeprivate java.lang.ClassvalueClass
-
Constructor Summary
Constructors Modifier Constructor Description privateBuiltInConnectionProperty(java.lang.String camelName, ConnectionProperty.Type type, java.lang.Object defaultValue, boolean required)privateBuiltInConnectionProperty(java.lang.String camelName, ConnectionProperty.Type type, java.lang.Object defaultValue, java.lang.Class valueClass, boolean required)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcamelName()The name of this property in camel-case.java.lang.ObjectdefaultValue()Returns the default value of this property.static booleanisLocalProperty(java.lang.Object propertyName)Checks if the given property only applicable to the remote driver (should not be sent to the Avatica server).booleanrequired()Whether the property is mandatory.ConnectionProperty.Typetype()Returns the data type of this property.java.lang.ClassvalueClass()Class of values that this property can take.static BuiltInConnectionPropertyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BuiltInConnectionProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.ConnectionConfigImpl.PropEnvwrap(java.util.Properties properties)Wraps this property with a properties object from which its value can be obtained when needed.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.apache.calcite.avatica.ConnectionProperty
name
-
-
-
-
Enum Constant Detail
-
FACTORY
public static final BuiltInConnectionProperty FACTORY
Factory.
-
SCHEMA
public static final BuiltInConnectionProperty SCHEMA
Name of initial schema.
-
TIME_ZONE
public static final BuiltInConnectionProperty TIME_ZONE
Time zone, for example 'gmt-3'. Default is the JVM's time zone.
-
URL
public static final BuiltInConnectionProperty URL
Remote URL.
-
SERIALIZATION
public static final BuiltInConnectionProperty SERIALIZATION
Serialization used over remote connections
-
AUTHENTICATION
public static final BuiltInConnectionProperty AUTHENTICATION
The type of authentication to be used
-
AVATICA_USER
public static final BuiltInConnectionProperty AVATICA_USER
Avatica-based authentication user name
-
AVATICA_PASSWORD
public static final BuiltInConnectionProperty AVATICA_PASSWORD
Avatica-based authentication password
-
HTTP_CLIENT_FACTORY
public static final BuiltInConnectionProperty HTTP_CLIENT_FACTORY
Factory for constructing http clients.
-
HTTP_CLIENT_IMPL
public static final BuiltInConnectionProperty HTTP_CLIENT_IMPL
HttpClient implementation class name.
-
PRINCIPAL
public static final BuiltInConnectionProperty PRINCIPAL
Principal to use to perform Kerberos login.
-
KEYTAB
public static final BuiltInConnectionProperty KEYTAB
Keytab to use to perform Kerberos login.
-
TRUSTSTORE
public static final BuiltInConnectionProperty TRUSTSTORE
Truststore for SSL/TLS communication
-
TRUSTSTORE_PASSWORD
public static final BuiltInConnectionProperty TRUSTSTORE_PASSWORD
Password for the truststore
-
KEYSTORE
public static final BuiltInConnectionProperty KEYSTORE
Keystore for MTLS authentication
-
KEYSTORE_PASSWORD
public static final BuiltInConnectionProperty KEYSTORE_PASSWORD
Password for the keystore
-
KEY_PASSWORD
public static final BuiltInConnectionProperty KEY_PASSWORD
Password for the key inside keystore
-
HOSTNAME_VERIFICATION
public static final BuiltInConnectionProperty HOSTNAME_VERIFICATION
-
-
Field Detail
-
camelName
private final java.lang.String camelName
-
type
private final ConnectionProperty.Type type
-
defaultValue
private final java.lang.Object defaultValue
-
valueClass
private java.lang.Class valueClass
-
required
private final boolean required
-
TIMEZONE
@Deprecated public static final BuiltInConnectionProperty TIMEZONE
Deprecated.Deprecated; useTIME_ZONE.
-
NAME_TO_PROPS
private static final java.util.Map<java.lang.String,BuiltInConnectionProperty> NAME_TO_PROPS
-
LOCAL_PROPS
private static final java.util.Set<java.lang.String> LOCAL_PROPS
-
-
Constructor Detail
-
BuiltInConnectionProperty
private BuiltInConnectionProperty(java.lang.String camelName, ConnectionProperty.Type type, java.lang.Object defaultValue, boolean required)
-
BuiltInConnectionProperty
private BuiltInConnectionProperty(java.lang.String camelName, ConnectionProperty.Type type, java.lang.Object defaultValue, java.lang.Class valueClass, boolean required)
-
-
Method Detail
-
values
public static BuiltInConnectionProperty[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BuiltInConnectionProperty c : BuiltInConnectionProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltInConnectionProperty valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
camelName
public java.lang.String camelName()
Description copied from interface:ConnectionPropertyThe name of this property in camel-case. (E.g. "materializationsEnabled".)- Specified by:
camelNamein interfaceConnectionProperty
-
defaultValue
public java.lang.Object defaultValue()
Description copied from interface:ConnectionPropertyReturns the default value of this property. The type must match its data type.- Specified by:
defaultValuein interfaceConnectionProperty
-
type
public ConnectionProperty.Type type()
Description copied from interface:ConnectionPropertyReturns the data type of this property.- Specified by:
typein interfaceConnectionProperty
-
required
public boolean required()
Description copied from interface:ConnectionPropertyWhether the property is mandatory.- Specified by:
requiredin interfaceConnectionProperty
-
valueClass
public java.lang.Class valueClass()
Description copied from interface:ConnectionPropertyClass of values that this property can take. Most useful forConnectionProperty.Type.ENUMproperties.- Specified by:
valueClassin interfaceConnectionProperty
-
wrap
public ConnectionConfigImpl.PropEnv wrap(java.util.Properties properties)
Description copied from interface:ConnectionPropertyWraps this property with a properties object from which its value can be obtained when needed.- Specified by:
wrapin interfaceConnectionProperty
-
isLocalProperty
public static boolean isLocalProperty(java.lang.Object propertyName)
Checks if the given property only applicable to the remote driver (should not be sent to the Avatica server).- Parameters:
propertyName- Name of the property- Returns:
- True if the property denoted by the given name is only relevant locally, otherwise false.
-
-