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, propertiesFields inherited from interface org.apache.calcite.config.CalciteConnectionConfig
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value ofCalciteConnectionProperty.APPROXIMATE_DECIMAL.booleanReturns the value ofCalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT.booleanReturns the value ofCalciteConnectionProperty.APPROXIMATE_TOP_N.booleanautoTemp()Returns the value ofCalciteConnectionProperty.AUTO_TEMP.booleanReturns the value ofCalciteConnectionProperty.CASE_SENSITIVE.Returns the value ofCalciteConnectionProperty.CONFORMANCE.booleanReturns the value ofCalciteConnectionProperty.CREATE_MATERIALIZATIONS.Returns the value ofCalciteConnectionProperty.DEFAULT_NULL_COLLATION.booleanReturns the value ofCalciteConnectionProperty.FORCE_DECORRELATE.<T> @PolyNull TReturns the value ofCalciteConnectionProperty.FUN, or a default operator table if not set.booleanisSet(CalciteConnectionProperty property) Returns whether a given property has been assigned a value.booleanReturns the value ofCalciteConnectionProperty.LENIENT_OPERATOR_LOOKUP.lex()Returns the value ofCalciteConnectionProperty.LEX.locale()Returns the value ofCalciteConnectionProperty.LOCALE.booleanReturns the value ofCalciteConnectionProperty.MATERIALIZATIONS_ENABLED.<T> @PolyNull TmetaColumnFactory(Class<T> metaColumnFactoryClass, @PolyNull T defaultMetaColumnFactory) Returns the value ofCalciteConnectionProperty.META_COLUMN_FACTORY, or a default meta column factory if not set.<T> @PolyNull TmetaTableFactory(Class<T> metaTableFactoryClass, @PolyNull T defaultMetaTableFactory) Returns the value ofCalciteConnectionProperty.META_TABLE_FACTORY, or a default meta table factory if not set.@Nullable Stringmodel()Returns the value ofCalciteConnectionProperty.MODEL.booleanReturns the value ofCalciteConnectionProperty.NULL_EQUAL_TO_EMPTY.<T> @PolyNull TparserFactory(Class<T> parserFactoryClass, @PolyNull T defaultParserFactory) Returns the value ofCalciteConnectionProperty.PARSER_FACTORY, or a default parser if not set.org.apache.calcite.avatica.util.CasingReturns the value ofCalciteConnectionProperty.QUOTED_CASING.org.apache.calcite.avatica.util.Quotingquoting()Returns the value ofCalciteConnectionProperty.QUOTING.<T> @PolyNull TschemaFactory(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.booleanspark()Returns the value ofCalciteConnectionProperty.SPARK.timeZone()Returns the value ofCalciteConnectionProperty.TIME_ZONE.booleanReturns the value ofCalciteConnectionProperty.TOPDOWN_OPT.booleanReturns the value ofCalciteConnectionProperty.TYPE_COERCION.<T> @PolyNull TtypeSystem(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.CasingReturns 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, useClientSideLbMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT.- Specified by:
approximateDistinctCountin interfaceCalciteConnectionConfig
-
approximateTopN
public boolean approximateTopN()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.APPROXIMATE_TOP_N.- Specified by:
approximateTopNin interfaceCalciteConnectionConfig
-
approximateDecimal
public boolean approximateDecimal()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.APPROXIMATE_DECIMAL.- Specified by:
approximateDecimalin interfaceCalciteConnectionConfig
-
nullEqualToEmpty
public boolean nullEqualToEmpty()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.NULL_EQUAL_TO_EMPTY.- Specified by:
nullEqualToEmptyin interfaceCalciteConnectionConfig
-
autoTemp
public boolean autoTemp()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.AUTO_TEMP.- Specified by:
autoTempin interfaceCalciteConnectionConfig
-
materializationsEnabled
public boolean materializationsEnabled()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.MATERIALIZATIONS_ENABLED.- Specified by:
materializationsEnabledin interfaceCalciteConnectionConfig
-
createMaterializations
public boolean createMaterializations()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.CREATE_MATERIALIZATIONS.- Specified by:
createMaterializationsin interfaceCalciteConnectionConfig
-
defaultNullCollation
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.DEFAULT_NULL_COLLATION.- Specified by:
defaultNullCollationin interfaceCalciteConnectionConfig
-
fun
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.FUN, or a default operator table if not set. IfdefaultOperatorTableis not null, the result is never null.- Specified by:
funin interfaceCalciteConnectionConfig
-
model
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.MODEL.- Specified by:
modelin interfaceCalciteConnectionConfig
-
lex
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.LEX.- Specified by:
lexin interfaceCalciteConnectionConfig
-
quoting
public org.apache.calcite.avatica.util.Quoting quoting()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.QUOTING.- Specified by:
quotingin interfaceCalciteConnectionConfig
-
unquotedCasing
public org.apache.calcite.avatica.util.Casing unquotedCasing()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.UNQUOTED_CASING.- Specified by:
unquotedCasingin interfaceCalciteConnectionConfig
-
quotedCasing
public org.apache.calcite.avatica.util.Casing quotedCasing()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.QUOTED_CASING.- Specified by:
quotedCasingin interfaceCalciteConnectionConfig
-
caseSensitive
public boolean caseSensitive()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.CASE_SENSITIVE.- Specified by:
caseSensitivein interfaceCalciteConnectionConfig
-
parserFactory
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.PARSER_FACTORY, or a default parser if not set. IfdefaultParserFactoryis not null, the result is never null.- Specified by:
parserFactoryin interfaceCalciteConnectionConfig
-
schemaFactory
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.SCHEMA_FACTORY, or a default schema factory if not set. IfdefaultSchemaFactoryis not null, the result is never null.- Specified by:
schemaFactoryin interfaceCalciteConnectionConfig
-
schemaType
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.SCHEMA_TYPE.- Specified by:
schemaTypein interfaceCalciteConnectionConfig
-
spark
public boolean spark()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.SPARK.- Specified by:
sparkin interfaceCalciteConnectionConfig
-
forceDecorrelate
public boolean forceDecorrelate()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.FORCE_DECORRELATE.- Specified by:
forceDecorrelatein interfaceCalciteConnectionConfig
-
typeSystem
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TYPE_SYSTEM, or a default type system if not set. IfdefaultTypeSystemis not null, the result is never null.- Specified by:
typeSystemin interfaceCalciteConnectionConfig
-
conformance
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.CONFORMANCE.- Specified by:
conformancein interfaceCalciteConnectionConfig
-
timeZone
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TIME_ZONE.- Specified by:
timeZonein interfaceCalciteConnectionConfig- Specified by:
timeZonein interfaceorg.apache.calcite.avatica.ConnectionConfig- Overrides:
timeZonein classorg.apache.calcite.avatica.ConnectionConfigImpl
-
locale
Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.LOCALE.- Specified by:
localein interfaceCalciteConnectionConfig
-
typeCoercion
public boolean typeCoercion()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TYPE_COERCION.- Specified by:
typeCoercionin interfaceCalciteConnectionConfig
-
lenientOperatorLookup
public boolean lenientOperatorLookup()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.LENIENT_OPERATOR_LOOKUP.- Specified by:
lenientOperatorLookupin interfaceCalciteConnectionConfig
-
topDownOpt
public boolean topDownOpt()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TOPDOWN_OPT.- Specified by:
topDownOptin interfaceCalciteConnectionConfig
-
metaTableFactory
public <T> @PolyNull T metaTableFactory(Class<T> metaTableFactoryClass, @PolyNull T defaultMetaTableFactory) Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.META_TABLE_FACTORY, or a default meta table factory if not set. IfdefaultMetaTableFactoryis not null, the result is never null.- Specified by:
metaTableFactoryin interfaceCalciteConnectionConfig
-
metaColumnFactory
public <T> @PolyNull T metaColumnFactory(Class<T> metaColumnFactoryClass, @PolyNull T defaultMetaColumnFactory) Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.META_COLUMN_FACTORY, or a default meta column factory if not set. IfdefaultMetaColumnFactoryis not null, the result is never null.- Specified by:
metaColumnFactoryin interfaceCalciteConnectionConfig
-