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
Fields -
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.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.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.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. IfdefaultOperatorTableis 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. IfdefaultParserFactoryis not null, the result is never null. -
schemaFactory
Returns the value ofCalciteConnectionProperty.SCHEMA_FACTORY, or a default schema factory if not set. IfdefaultSchemaFactoryis 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. IfdefaultTypeSystemis 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:
timeZonein 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. IfdefaultMetaTableFactoryis 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. IfdefaultMetaColumnFactoryis not null, the result is never null.
-