Package org.apache.calcite.config
Class CalciteConnectionConfigImpl
java.lang.Object
org.apache.calcite.avatica.ConnectionConfigImpl
org.apache.calcite.config.CalciteConnectionConfigImpl
- All Implemented Interfaces:
org.apache.calcite.avatica.ConnectionConfig
,CalciteConnectionConfig
public class CalciteConnectionConfigImpl
extends org.apache.calcite.avatica.ConnectionConfigImpl
implements CalciteConnectionConfig
Implementation of
CalciteConnectionConfig
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.avatica.ConnectionConfigImpl
org.apache.calcite.avatica.ConnectionConfigImpl.Converter<T>, org.apache.calcite.avatica.ConnectionConfigImpl.PropEnv
-
Field Summary
Fields inherited from class org.apache.calcite.avatica.ConnectionConfigImpl
BOOLEAN_CONVERTER, IDENTITY_CONVERTER, NUMBER_CONVERTER, properties
Fields inherited from interface org.apache.calcite.config.CalciteConnectionConfig
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value ofCalciteConnectionProperty.APPROXIMATE_DECIMAL
.boolean
Returns the value ofCalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT
.boolean
Returns the value ofCalciteConnectionProperty.APPROXIMATE_TOP_N
.boolean
autoTemp()
Returns the value ofCalciteConnectionProperty.AUTO_TEMP
.boolean
Returns the value ofCalciteConnectionProperty.CASE_SENSITIVE
.Returns the value ofCalciteConnectionProperty.CONFORMANCE
.boolean
Returns the value ofCalciteConnectionProperty.CREATE_MATERIALIZATIONS
.Returns the value ofCalciteConnectionProperty.DEFAULT_NULL_COLLATION
.boolean
Returns the value ofCalciteConnectionProperty.FORCE_DECORRELATE
.<T> @PolyNull T
Returns the value ofCalciteConnectionProperty.FUN
, or a default operator table if not set.boolean
isSet
(CalciteConnectionProperty property) Returns whether a given property has been assigned a value.boolean
Returns the value ofCalciteConnectionProperty.LENIENT_OPERATOR_LOOKUP
.lex()
Returns the value ofCalciteConnectionProperty.LEX
.locale()
Returns the value ofCalciteConnectionProperty.LOCALE
.boolean
Returns the value ofCalciteConnectionProperty.MATERIALIZATIONS_ENABLED
.<T> @PolyNull T
metaColumnFactory
(Class<T> metaColumnFactoryClass, @PolyNull T defaultMetaColumnFactory) Returns the value ofCalciteConnectionProperty.META_COLUMN_FACTORY
, or a default meta column factory if not set.<T> @PolyNull T
metaTableFactory
(Class<T> metaTableFactoryClass, @PolyNull T defaultMetaTableFactory) Returns the value ofCalciteConnectionProperty.META_TABLE_FACTORY
, or a default meta table factory if not set.@Nullable String
model()
Returns the value ofCalciteConnectionProperty.MODEL
.boolean
Returns the value ofCalciteConnectionProperty.NULL_EQUAL_TO_EMPTY
.<T> @PolyNull T
parserFactory
(Class<T> parserFactoryClass, @PolyNull T defaultParserFactory) Returns the value ofCalciteConnectionProperty.PARSER_FACTORY
, or a default parser if not set.org.apache.calcite.avatica.util.Casing
Returns the value ofCalciteConnectionProperty.QUOTED_CASING
.org.apache.calcite.avatica.util.Quoting
quoting()
Returns the value ofCalciteConnectionProperty.QUOTING
.<T> @PolyNull T
schemaFactory
(Class<T> schemaFactoryClass, @PolyNull T defaultSchemaFactory) Returns the value ofCalciteConnectionProperty.SCHEMA_FACTORY
, or a default schema factory if not set.Returns the value ofCalciteConnectionProperty.SCHEMA_TYPE
.set
(CalciteConnectionProperty property, String value) Returns a copy of this configuration with one property changed.boolean
spark()
Returns the value ofCalciteConnectionProperty.SPARK
.timeZone()
Returns the value ofCalciteConnectionProperty.TIME_ZONE
.boolean
Returns the value ofCalciteConnectionProperty.TOPDOWN_OPT
.boolean
Returns the value ofCalciteConnectionProperty.TYPE_COERCION
.<T> @PolyNull T
typeSystem
(Class<T> typeSystemClass, @PolyNull T defaultTypeSystem) Returns the value ofCalciteConnectionProperty.TYPE_SYSTEM
, or a default type system if not set.org.apache.calcite.avatica.util.Casing
Returns the value ofCalciteConnectionProperty.UNQUOTED_CASING
.unset
(CalciteConnectionProperty property) Returns a copy of this configuration with the value of a property removed.Methods inherited from class org.apache.calcite.avatica.ConnectionConfigImpl
authentication, avaticaPassword, avaticaUser, enumConverter, factory, fetchSize, getHttpConnectionTimeout, getHttpResponseTimeout, getLBConnectionFailoverRetries, getLBConnectionFailoverSleepTime, getLBStrategy, getLbURLs, hostnameVerification, httpClientClass, httpClientFactory, kerberosKeytab, kerberosPrincipal, keyPassword, keystore, keystorePassword, keystoreType, parse, pluginConverter, schema, serialization, transparentReconnectionEnabled, truststore, truststorePassword, url, useClientSideLb
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.avatica.ConnectionConfig
authentication, avaticaPassword, avaticaUser, factory, fetchSize, getHttpConnectionTimeout, getHttpResponseTimeout, getLBConnectionFailoverRetries, getLBConnectionFailoverSleepTime, getLBStrategy, getLbURLs, hostnameVerification, httpClientClass, httpClientFactory, kerberosKeytab, kerberosPrincipal, keyPassword, keystore, keystorePassword, keystoreType, schema, serialization, transparentReconnectionEnabled, truststore, truststorePassword, url, useClientSideLb
-
Constructor Details
-
CalciteConnectionConfigImpl
-
-
Method Details
-
set
Returns a copy of this configuration with one property changed.Does not modify this configuration.
-
unset
Returns a copy of this configuration with the value of a property removed.Does not modify this configuration.
-
isSet
Returns whether a given property has been assigned a value.If not, the value returned for the property will be its default value.
-
approximateDistinctCount
public boolean approximateDistinctCount()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT
.- Specified by:
approximateDistinctCount
in interfaceCalciteConnectionConfig
-
approximateTopN
public boolean approximateTopN()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.APPROXIMATE_TOP_N
.- Specified by:
approximateTopN
in interfaceCalciteConnectionConfig
-
approximateDecimal
public boolean approximateDecimal()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.APPROXIMATE_DECIMAL
.- Specified by:
approximateDecimal
in interfaceCalciteConnectionConfig
-
nullEqualToEmpty
public boolean nullEqualToEmpty()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.NULL_EQUAL_TO_EMPTY
.- Specified by:
nullEqualToEmpty
in interfaceCalciteConnectionConfig
-
autoTemp
public boolean autoTemp()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.AUTO_TEMP
.- Specified by:
autoTemp
in interfaceCalciteConnectionConfig
-
materializationsEnabled
public boolean materializationsEnabled()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.MATERIALIZATIONS_ENABLED
.- Specified by:
materializationsEnabled
in interfaceCalciteConnectionConfig
-
createMaterializations
public boolean createMaterializations()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.CREATE_MATERIALIZATIONS
.- Specified by:
createMaterializations
in interfaceCalciteConnectionConfig
-
defaultNullCollation
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.DEFAULT_NULL_COLLATION
.- Specified by:
defaultNullCollation
in interfaceCalciteConnectionConfig
-
fun
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.FUN
, or a default operator table if not set. IfdefaultOperatorTable
is not null, the result is never null.- Specified by:
fun
in interfaceCalciteConnectionConfig
-
model
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.MODEL
.- Specified by:
model
in interfaceCalciteConnectionConfig
-
lex
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.LEX
.- Specified by:
lex
in interfaceCalciteConnectionConfig
-
quoting
public org.apache.calcite.avatica.util.Quoting quoting()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.QUOTING
.- Specified by:
quoting
in interfaceCalciteConnectionConfig
-
unquotedCasing
public org.apache.calcite.avatica.util.Casing unquotedCasing()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.UNQUOTED_CASING
.- Specified by:
unquotedCasing
in interfaceCalciteConnectionConfig
-
quotedCasing
public org.apache.calcite.avatica.util.Casing quotedCasing()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.QUOTED_CASING
.- Specified by:
quotedCasing
in interfaceCalciteConnectionConfig
-
caseSensitive
public boolean caseSensitive()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.CASE_SENSITIVE
.- Specified by:
caseSensitive
in interfaceCalciteConnectionConfig
-
parserFactory
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.PARSER_FACTORY
, or a default parser if not set. IfdefaultParserFactory
is not null, the result is never null.- Specified by:
parserFactory
in interfaceCalciteConnectionConfig
-
schemaFactory
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.SCHEMA_FACTORY
, or a default schema factory if not set. IfdefaultSchemaFactory
is not null, the result is never null.- Specified by:
schemaFactory
in interfaceCalciteConnectionConfig
-
schemaType
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.SCHEMA_TYPE
.- Specified by:
schemaType
in interfaceCalciteConnectionConfig
-
spark
public boolean spark()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.SPARK
.- Specified by:
spark
in interfaceCalciteConnectionConfig
-
forceDecorrelate
public boolean forceDecorrelate()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.FORCE_DECORRELATE
.- Specified by:
forceDecorrelate
in interfaceCalciteConnectionConfig
-
typeSystem
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.TYPE_SYSTEM
, or a default type system if not set. IfdefaultTypeSystem
is not null, the result is never null.- Specified by:
typeSystem
in interfaceCalciteConnectionConfig
-
conformance
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.CONFORMANCE
.- Specified by:
conformance
in interfaceCalciteConnectionConfig
-
timeZone
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.TIME_ZONE
.- Specified by:
timeZone
in interfaceCalciteConnectionConfig
- Specified by:
timeZone
in interfaceorg.apache.calcite.avatica.ConnectionConfig
- Overrides:
timeZone
in classorg.apache.calcite.avatica.ConnectionConfigImpl
-
locale
Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.LOCALE
.- Specified by:
locale
in interfaceCalciteConnectionConfig
-
typeCoercion
public boolean typeCoercion()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.TYPE_COERCION
.- Specified by:
typeCoercion
in interfaceCalciteConnectionConfig
-
lenientOperatorLookup
public boolean lenientOperatorLookup()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.LENIENT_OPERATOR_LOOKUP
.- Specified by:
lenientOperatorLookup
in interfaceCalciteConnectionConfig
-
topDownOpt
public boolean topDownOpt()Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.TOPDOWN_OPT
.- Specified by:
topDownOpt
in interfaceCalciteConnectionConfig
-
metaTableFactory
public <T> @PolyNull T metaTableFactory(Class<T> metaTableFactoryClass, @PolyNull T defaultMetaTableFactory) Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.META_TABLE_FACTORY
, or a default meta table factory if not set. IfdefaultMetaTableFactory
is not null, the result is never null.- Specified by:
metaTableFactory
in interfaceCalciteConnectionConfig
-
metaColumnFactory
public <T> @PolyNull T metaColumnFactory(Class<T> metaColumnFactoryClass, @PolyNull T defaultMetaColumnFactory) Description copied from interface:CalciteConnectionConfig
Returns the value ofCalciteConnectionProperty.META_COLUMN_FACTORY
, or a default meta column factory if not set. IfdefaultMetaColumnFactory
is not null, the result is never null.- Specified by:
metaColumnFactory
in interfaceCalciteConnectionConfig
-