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 SummaryNested classes/interfaces inherited from class org.apache.calcite.avatica.ConnectionConfigImplorg.apache.calcite.avatica.ConnectionConfigImpl.Converter<T>, org.apache.calcite.avatica.ConnectionConfigImpl.PropEnv
- 
Field SummaryFields inherited from class org.apache.calcite.avatica.ConnectionConfigImplBOOLEAN_CONVERTER, IDENTITY_CONVERTER, NUMBER_CONVERTER, propertiesFields inherited from interface org.apache.calcite.config.CalciteConnectionConfigDEFAULT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ConnectionConfigImplauthentication, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.avatica.ConnectionConfigauthentication, 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- 
setReturns a copy of this configuration with one property changed.Does not modify this configuration. 
- 
unsetReturns a copy of this configuration with the value of a property removed.Does not modify this configuration. 
- 
isSetReturns whether a given property has been assigned a value.If not, the value returned for the property will be its default value. 
- 
approximateDistinctCountpublic boolean approximateDistinctCount()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT.- Specified by:
- approximateDistinctCountin interface- CalciteConnectionConfig
 
- 
approximateTopNpublic boolean approximateTopN()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.APPROXIMATE_TOP_N.- Specified by:
- approximateTopNin interface- CalciteConnectionConfig
 
- 
approximateDecimalpublic boolean approximateDecimal()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.APPROXIMATE_DECIMAL.- Specified by:
- approximateDecimalin interface- CalciteConnectionConfig
 
- 
nullEqualToEmptypublic boolean nullEqualToEmpty()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.NULL_EQUAL_TO_EMPTY.- Specified by:
- nullEqualToEmptyin interface- CalciteConnectionConfig
 
- 
autoTemppublic boolean autoTemp()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.AUTO_TEMP.- Specified by:
- autoTempin interface- CalciteConnectionConfig
 
- 
materializationsEnabledpublic boolean materializationsEnabled()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.MATERIALIZATIONS_ENABLED.- Specified by:
- materializationsEnabledin interface- CalciteConnectionConfig
 
- 
createMaterializationspublic boolean createMaterializations()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.CREATE_MATERIALIZATIONS.- Specified by:
- createMaterializationsin interface- CalciteConnectionConfig
 
- 
defaultNullCollationDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.DEFAULT_NULL_COLLATION.- Specified by:
- defaultNullCollationin interface- CalciteConnectionConfig
 
- 
funDescription 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 interface- CalciteConnectionConfig
 
- 
modelDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.MODEL.- Specified by:
- modelin interface- CalciteConnectionConfig
 
- 
lexDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.LEX.- Specified by:
- lexin interface- CalciteConnectionConfig
 
- 
quotingpublic org.apache.calcite.avatica.util.Quoting quoting()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.QUOTING.- Specified by:
- quotingin interface- CalciteConnectionConfig
 
- 
unquotedCasingpublic org.apache.calcite.avatica.util.Casing unquotedCasing()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.UNQUOTED_CASING.- Specified by:
- unquotedCasingin interface- CalciteConnectionConfig
 
- 
quotedCasingpublic org.apache.calcite.avatica.util.Casing quotedCasing()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.QUOTED_CASING.- Specified by:
- quotedCasingin interface- CalciteConnectionConfig
 
- 
caseSensitivepublic boolean caseSensitive()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.CASE_SENSITIVE.- Specified by:
- caseSensitivein interface- CalciteConnectionConfig
 
- 
parserFactoryDescription 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 interface- CalciteConnectionConfig
 
- 
schemaFactoryDescription 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 interface- CalciteConnectionConfig
 
- 
schemaTypeDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.SCHEMA_TYPE.- Specified by:
- schemaTypein interface- CalciteConnectionConfig
 
- 
sparkpublic boolean spark()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.SPARK.- Specified by:
- sparkin interface- CalciteConnectionConfig
 
- 
forceDecorrelatepublic boolean forceDecorrelate()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.FORCE_DECORRELATE.- Specified by:
- forceDecorrelatein interface- CalciteConnectionConfig
 
- 
typeSystemDescription 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 interface- CalciteConnectionConfig
 
- 
conformanceDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.CONFORMANCE.- Specified by:
- conformancein interface- CalciteConnectionConfig
 
- 
timeZoneDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TIME_ZONE.- Specified by:
- timeZonein interface- CalciteConnectionConfig
- Specified by:
- timeZonein interface- org.apache.calcite.avatica.ConnectionConfig
- Overrides:
- timeZonein class- org.apache.calcite.avatica.ConnectionConfigImpl
 
- 
localeDescription copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.LOCALE.- Specified by:
- localein interface- CalciteConnectionConfig
 
- 
typeCoercionpublic boolean typeCoercion()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TYPE_COERCION.- Specified by:
- typeCoercionin interface- CalciteConnectionConfig
 
- 
lenientOperatorLookuppublic boolean lenientOperatorLookup()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.LENIENT_OPERATOR_LOOKUP.- Specified by:
- lenientOperatorLookupin interface- CalciteConnectionConfig
 
- 
topDownOptpublic boolean topDownOpt()Description copied from interface:CalciteConnectionConfigReturns the value ofCalciteConnectionProperty.TOPDOWN_OPT.- Specified by:
- topDownOptin interface- CalciteConnectionConfig
 
- 
metaTableFactorypublic <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 interface- CalciteConnectionConfig
 
- 
metaColumnFactorypublic <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 interface- CalciteConnectionConfig
 
 
-