Package org.apache.calcite.config
Interface CalciteConnectionConfig
- All Superinterfaces:
org.apache.calcite.avatica.ConnectionConfig
- All Known Implementing Classes:
CalciteConnectionConfigImpl
public interface CalciteConnectionConfig
extends org.apache.calcite.avatica.ConnectionConfig
Interface for reading connection properties within Calcite code. There is
a method for every property. At some point there will be similar config
classes for system and statement properties.
-
Field 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
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
.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
.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
-
Field Details
-
DEFAULT
Default configuration.
-
-
Method Details
-
approximateDistinctCount
boolean approximateDistinctCount()Returns the value ofCalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT
. -
approximateTopN
boolean approximateTopN()Returns the value ofCalciteConnectionProperty.APPROXIMATE_TOP_N
. -
approximateDecimal
boolean approximateDecimal()Returns the value ofCalciteConnectionProperty.APPROXIMATE_DECIMAL
. -
nullEqualToEmpty
boolean nullEqualToEmpty()Returns the value ofCalciteConnectionProperty.NULL_EQUAL_TO_EMPTY
. -
autoTemp
boolean autoTemp()Returns the value ofCalciteConnectionProperty.AUTO_TEMP
. -
materializationsEnabled
boolean materializationsEnabled()Returns the value ofCalciteConnectionProperty.MATERIALIZATIONS_ENABLED
. -
createMaterializations
boolean createMaterializations()Returns the value ofCalciteConnectionProperty.CREATE_MATERIALIZATIONS
. -
defaultNullCollation
NullCollation defaultNullCollation()Returns the value ofCalciteConnectionProperty.DEFAULT_NULL_COLLATION
. -
fun
Returns the value ofCalciteConnectionProperty.FUN
, or a default operator table if not set. IfdefaultOperatorTable
is not null, the result is never null. -
model
@Nullable String model()Returns the value ofCalciteConnectionProperty.MODEL
. -
lex
Lex lex()Returns the value ofCalciteConnectionProperty.LEX
. -
quoting
org.apache.calcite.avatica.util.Quoting quoting()Returns the value ofCalciteConnectionProperty.QUOTING
. -
unquotedCasing
org.apache.calcite.avatica.util.Casing unquotedCasing()Returns the value ofCalciteConnectionProperty.UNQUOTED_CASING
. -
quotedCasing
org.apache.calcite.avatica.util.Casing quotedCasing()Returns the value ofCalciteConnectionProperty.QUOTED_CASING
. -
caseSensitive
boolean caseSensitive()Returns the value ofCalciteConnectionProperty.CASE_SENSITIVE
. -
parserFactory
Returns the value ofCalciteConnectionProperty.PARSER_FACTORY
, or a default parser if not set. IfdefaultParserFactory
is not null, the result is never null. -
schemaFactory
Returns the value ofCalciteConnectionProperty.SCHEMA_FACTORY
, or a default schema factory if not set. IfdefaultSchemaFactory
is not null, the result is never null. -
schemaType
JsonSchema.Type schemaType()Returns the value ofCalciteConnectionProperty.SCHEMA_TYPE
. -
spark
boolean spark()Returns the value ofCalciteConnectionProperty.SPARK
. -
forceDecorrelate
boolean forceDecorrelate()Returns the value ofCalciteConnectionProperty.FORCE_DECORRELATE
. -
typeSystem
Returns the value ofCalciteConnectionProperty.TYPE_SYSTEM
, or a default type system if not set. IfdefaultTypeSystem
is not null, the result is never null. -
conformance
SqlConformance conformance()Returns the value ofCalciteConnectionProperty.CONFORMANCE
. -
timeZone
String timeZone()Returns the value ofCalciteConnectionProperty.TIME_ZONE
.- Specified by:
timeZone
in interfaceorg.apache.calcite.avatica.ConnectionConfig
-
locale
String locale()Returns the value ofCalciteConnectionProperty.LOCALE
. -
typeCoercion
boolean typeCoercion()Returns the value ofCalciteConnectionProperty.TYPE_COERCION
. -
lenientOperatorLookup
boolean lenientOperatorLookup()Returns the value ofCalciteConnectionProperty.LENIENT_OPERATOR_LOOKUP
. -
topDownOpt
boolean topDownOpt()Returns the value ofCalciteConnectionProperty.TOPDOWN_OPT
. -
metaTableFactory
<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. IfdefaultMetaTableFactory
is not null, the result is never null. -
metaColumnFactory
<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. IfdefaultMetaColumnFactory
is not null, the result is never null.
-