Enum CalciteConnectionProperty
- All Implemented Interfaces:
Serializable,Comparable<CalciteConnectionProperty>,Constable,org.apache.calcite.avatica.ConnectionProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.apache.calcite.avatica.ConnectionProperty
org.apache.calcite.avatica.ConnectionProperty.Type -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether approximate results from aggregate functions on DECIMAL types are acceptable.Whether approximate results fromCOUNT(DISTINCT ...)aggregate functions are acceptable.Whether approximate results from "Top N" queries (ORDER BY aggFun DESC LIMIT n) are acceptable.Whether to store query results in temporary tables.Whether identifiers are matched case-sensitively.SQL conformance level.Whether Calcite should create materializations.How NULL values should be sorted if neither NULLS FIRST nor NULLS LAST are specified.How many rows the Druid adapter should fetch at a time when executing "select" queries.If the planner should try de-correlating as much as it is possible.Collection of built-in functions and operators.Whether to make create implicit functions if functions do not exist in the operator table, default false.Lexical policy.Returns the locale from the connect string.Whether Calcite should use materializations.MetaColumnFactory plugin.MetaTableFactory plugin.URI of the model.Whether to treat empty strings as null for Druid Adapter.Parser factory.How identifiers are stored if they are quoted.How identifiers are quoted.Name of initial schema.Schema factory.Schema type.Specifies whether Spark should be used as the engine for processing that cannot be pushed to the source system.Returns the time zone from the connect string, for example 'gmt-3'.Whether to enable top-down optimization in Volcano planner.Whether to make implicit type coercion when type mismatch for validation, default true.Type system.How identifiers are stored if they are not quoted. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable Objectbooleanrequired()org.apache.calcite.avatica.ConnectionProperty.Typetype()@Nullable Classstatic CalciteConnectionPropertyReturns the enum constant of this type with the specified name.static CalciteConnectionProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.org.apache.calcite.avatica.ConnectionConfigImpl.PropEnvwrap(Properties properties) Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.apache.calcite.avatica.ConnectionProperty
name
-
Enum Constant Details
-
APPROXIMATE_DISTINCT_COUNT
Whether approximate results fromCOUNT(DISTINCT ...)aggregate functions are acceptable. -
APPROXIMATE_TOP_N
Whether approximate results from "Top N" queries (ORDER BY aggFun DESC LIMIT n) are acceptable. -
APPROXIMATE_DECIMAL
Whether approximate results from aggregate functions on DECIMAL types are acceptable. -
NULL_EQUAL_TO_EMPTY
Whether to treat empty strings as null for Druid Adapter. -
AUTO_TEMP
Whether to store query results in temporary tables. -
MATERIALIZATIONS_ENABLED
Whether Calcite should use materializations. -
CREATE_MATERIALIZATIONS
Whether Calcite should create materializations. -
DEFAULT_NULL_COLLATION
How NULL values should be sorted if neither NULLS FIRST nor NULLS LAST are specified. The default, HIGH, sorts NULL values the same as Oracle. -
DRUID_FETCH
How many rows the Druid adapter should fetch at a time when executing "select" queries. -
MODEL
URI of the model. -
LEX
Lexical policy. -
FUN
Collection of built-in functions and operators. Valid values include "standard", "bigquery", "calcite", "hive", "mssql", "mysql", "oracle", "postgresql", "redshift", "snowflake","spark", "spatial" and "all"(operators that could be used in all libraries except "standard" and "spatial"), and also comma-separated lists, for example "oracle,spatial". -
QUOTING
How identifiers are quoted. If not specified, value fromLEXis used. -
QUOTED_CASING
How identifiers are stored if they are quoted. If not specified, value fromLEXis used. -
UNQUOTED_CASING
How identifiers are stored if they are not quoted. If not specified, value fromLEXis used. -
CASE_SENSITIVE
Whether identifiers are matched case-sensitively. If not specified, value fromLEXis used. -
PARSER_FACTORY
Parser factory.The name of a class that implements
SqlParserImplFactory. -
META_TABLE_FACTORY
MetaTableFactory plugin. -
META_COLUMN_FACTORY
MetaColumnFactory plugin. -
SCHEMA
Name of initial schema. -
SCHEMA_FACTORY
Schema factory.The name of a class that implements
SchemaFactory.Ignored if
MODELis specified. -
SCHEMA_TYPE
Schema type.Value may be null, "MAP", "JDBC", or "CUSTOM" (implicit if
SCHEMA_FACTORYis specified).Ignored if
MODELis specified. -
SPARK
Specifies whether Spark should be used as the engine for processing that cannot be pushed to the source system. If false (the default), Calcite generates code that implements the Enumerable interface. -
TIME_ZONE
Returns the time zone from the connect string, for example 'gmt-3'. If the time zone is not set then the JVM time zone is returned. Never null. -
LOCALE
Returns the locale from the connect string. If the locale is not set, returns the root locale. Never null. Examples of valid locales: 'en', 'en_US', 'de_DE', '_GB', 'en_US_WIN', 'de__POSIX', 'fr__MAC', ''. -
FORCE_DECORRELATE
If the planner should try de-correlating as much as it is possible. If true (the default), Calcite de-correlates the plan. -
TYPE_SYSTEM
Type system. The name of a class that implementsRelDataTypeSystemand has a public default constructor or anINSTANCEconstant. -
CONFORMANCE
SQL conformance level.Controls the semantics of ISO standard SQL features that are implemented in non-standard ways in some other systems.
For example, the
SUBSTRING(string FROM start [FOR length])operator treats negativestartvalues as 1, but BigQuery's implementation regards negativestartsas counting from the end. Ifconformance=BIG_QUERYwe will use BigQuery's behavior.This property only affects ISO standard SQL features. For example, the
SUBSTRfunction is non-standard, so is controlled by thefunproperty. If you setfun=oracleyou will getSUBSTRwith Oracle's semantics; if you setfun=postgresyou will getSUBSTRwith PostgreSQL's (slightly different) semantics. -
TYPE_COERCION
Whether to make implicit type coercion when type mismatch for validation, default true. -
LENIENT_OPERATOR_LOOKUP
Whether to make create implicit functions if functions do not exist in the operator table, default false. -
TOPDOWN_OPT
Whether to enable top-down optimization in Volcano planner.
-
-
Field Details
-
TIMEZONE
Deprecated.Deprecated; useTIME_ZONE.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
camelName
- Specified by:
camelNamein interfaceorg.apache.calcite.avatica.ConnectionProperty
-
defaultValue
- Specified by:
defaultValuein interfaceorg.apache.calcite.avatica.ConnectionProperty
-
type
public org.apache.calcite.avatica.ConnectionProperty.Type type()- Specified by:
typein interfaceorg.apache.calcite.avatica.ConnectionProperty
-
valueClass
- Specified by:
valueClassin interfaceorg.apache.calcite.avatica.ConnectionProperty
-
required
public boolean required()- Specified by:
requiredin interfaceorg.apache.calcite.avatica.ConnectionProperty
-
wrap
- Specified by:
wrapin interfaceorg.apache.calcite.avatica.ConnectionProperty
-