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 ofCalciteConnectionConfig
.
-
-
Constructor Summary
Constructors Constructor Description CalciteConnectionConfigImpl(java.util.Properties properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
approximateDecimal()
boolean
approximateDistinctCount()
boolean
approximateTopN()
boolean
autoTemp()
boolean
caseSensitive()
SqlConformance
conformance()
boolean
createMaterializations()
NullCollation
defaultNullCollation()
boolean
forceDecorrelate()
<T> T
fun(java.lang.Class<T> operatorTableClass, T defaultOperatorTable)
Lex
lex()
boolean
materializationsEnabled()
java.lang.String
model()
boolean
nullEqualToEmpty()
private static void
operatorTable(java.lang.String s, java.util.Collection<SqlOperatorTable> tables)
<T> T
parserFactory(java.lang.Class<T> parserFactoryClass, T defaultParserFactory)
org.apache.calcite.avatica.util.Casing
quotedCasing()
org.apache.calcite.avatica.util.Quoting
quoting()
<T> T
schemaFactory(java.lang.Class<T> schemaFactoryClass, T defaultSchemaFactory)
JsonSchema.Type
schemaType()
CalciteConnectionConfigImpl
set(CalciteConnectionProperty property, java.lang.String value)
Returns a copy of this configuration with one property changed.boolean
spark()
<T> T
typeSystem(java.lang.Class<T> typeSystemClass, T defaultTypeSystem)
org.apache.calcite.avatica.util.Casing
unquotedCasing()
-
Methods inherited from class org.apache.calcite.avatica.ConnectionConfigImpl
authentication, avaticaPassword, avaticaUser, enumConverter, factory, hostnameVerification, httpClientClass, httpClientFactory, kerberosKeytab, kerberosPrincipal, keyPassword, keystore, keystorePassword, parse, pluginConverter, schema, serialization, timeZone, truststore, truststorePassword, url
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.calcite.avatica.ConnectionConfig
authentication, avaticaPassword, avaticaUser, factory, hostnameVerification, httpClientClass, httpClientFactory, kerberosKeytab, kerberosPrincipal, keyPassword, keystore, keystorePassword, schema, serialization, timeZone, truststore, truststorePassword, url
-
-
-
-
Method Detail
-
set
public CalciteConnectionConfigImpl set(CalciteConnectionProperty property, java.lang.String value)
Returns a copy of this configuration with one property changed.
-
approximateDistinctCount
public boolean approximateDistinctCount()
- Specified by:
approximateDistinctCount
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.APPROXIMATE_DISTINCT_COUNT
-
approximateTopN
public boolean approximateTopN()
- Specified by:
approximateTopN
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.APPROXIMATE_TOP_N
-
approximateDecimal
public boolean approximateDecimal()
- Specified by:
approximateDecimal
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.APPROXIMATE_DECIMAL
-
nullEqualToEmpty
public boolean nullEqualToEmpty()
- Specified by:
nullEqualToEmpty
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.NULL_EQUAL_TO_EMPTY
-
autoTemp
public boolean autoTemp()
- Specified by:
autoTemp
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.AUTO_TEMP
-
materializationsEnabled
public boolean materializationsEnabled()
- Specified by:
materializationsEnabled
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.MATERIALIZATIONS_ENABLED
-
createMaterializations
public boolean createMaterializations()
- Specified by:
createMaterializations
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.CREATE_MATERIALIZATIONS
-
defaultNullCollation
public NullCollation defaultNullCollation()
- Specified by:
defaultNullCollation
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.DEFAULT_NULL_COLLATION
-
fun
public <T> T fun(java.lang.Class<T> operatorTableClass, T defaultOperatorTable)
- Specified by:
fun
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.FUN
-
operatorTable
private static void operatorTable(java.lang.String s, java.util.Collection<SqlOperatorTable> tables)
-
model
public java.lang.String model()
- Specified by:
model
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.MODEL
-
lex
public Lex lex()
- Specified by:
lex
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.LEX
-
quoting
public org.apache.calcite.avatica.util.Quoting quoting()
- Specified by:
quoting
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.QUOTING
-
unquotedCasing
public org.apache.calcite.avatica.util.Casing unquotedCasing()
- Specified by:
unquotedCasing
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.UNQUOTED_CASING
-
quotedCasing
public org.apache.calcite.avatica.util.Casing quotedCasing()
- Specified by:
quotedCasing
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.QUOTED_CASING
-
caseSensitive
public boolean caseSensitive()
- Specified by:
caseSensitive
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.CASE_SENSITIVE
-
parserFactory
public <T> T parserFactory(java.lang.Class<T> parserFactoryClass, T defaultParserFactory)
- Specified by:
parserFactory
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.PARSER_FACTORY
-
schemaFactory
public <T> T schemaFactory(java.lang.Class<T> schemaFactoryClass, T defaultSchemaFactory)
- Specified by:
schemaFactory
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.SCHEMA_FACTORY
-
schemaType
public JsonSchema.Type schemaType()
- Specified by:
schemaType
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.SCHEMA_TYPE
-
spark
public boolean spark()
- Specified by:
spark
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.SPARK
-
forceDecorrelate
public boolean forceDecorrelate()
- Specified by:
forceDecorrelate
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.FORCE_DECORRELATE
-
typeSystem
public <T> T typeSystem(java.lang.Class<T> typeSystemClass, T defaultTypeSystem)
- Specified by:
typeSystem
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.TYPE_SYSTEM
-
conformance
public SqlConformance conformance()
- Specified by:
conformance
in interfaceCalciteConnectionConfig
- See Also:
CalciteConnectionProperty.CONFORMANCE
-
-