OmniSciDB  c07336695a
org.apache.calcite.sql2rel.SqlToRelConverter.Config Interface Reference
+ Inheritance diagram for org.apache.calcite.sql2rel.SqlToRelConverter.Config:
+ Collaboration diagram for org.apache.calcite.sql2rel.SqlToRelConverter.Config:

Public Member Functions

boolean isConvertTableAccess ()
 
boolean isDecorrelationEnabled ()
 
boolean isTrimUnusedFields ()
 
boolean isCreateValuesRel ()
 
boolean isExplain ()
 
boolean isExpand ()
 
int getInSubQueryThreshold ()
 
RelBuilderFactory getRelBuilderFactory ()
 

Public Attributes

Config DEFAULT = configBuilder().build()
 

Detailed Description

Interface to define the configuration for a SqlToRelConverter. Provides methods to set each configuration option.

See also
ConfigBuilder
SqlToRelConverter::configBuilder()

Definition at line 5255 of file SqlToRelConverter.java.

Member Function Documentation

◆ getInSubQueryThreshold()

int org.apache.calcite.sql2rel.SqlToRelConverter.Config.getInSubQueryThreshold ( )

Returns the

inSubQueryThreshold

option, default DEFAULT_IN_SUB_QUERY_THRESHOLD. Controls the list size threshold under which convertInToOr is used. Lists of this size or greater will instead be converted to use a join against an inline table (org.apache.calcite.rel.logical.LogicalValues) rather than a predicate. A threshold of 0 forces usage of an inline table in all cases; a threshold of Integer#MAX_VALUE forces usage of OR in all cases.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ getRelBuilderFactory()

RelBuilderFactory org.apache.calcite.sql2rel.SqlToRelConverter.Config.getRelBuilderFactory ( )

Returns the factory to create RelBuilder, never null. Default is RelFactories#LOGICAL_BUILDER.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.SqlToRelConverter(), and org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ isConvertTableAccess()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.Config.isConvertTableAccess ( )

Returns the

convertTableAccess

option. Controls whether table access references are converted to physical rels immediately. The optimizer doesn't like leaf rels to have Convention#NONE. However, if we are doing further conversion passes (e.g. RelStructuredTypeFlattener), then we may need to defer conversion.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ isCreateValuesRel()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.Config.isCreateValuesRel ( )

Returns the

createValuesRel

option. Controls whether instances of org.apache.calcite.rel.logical.LogicalValues are generated. These may not be supported by all physical implementations.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ isDecorrelationEnabled()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.Config.isDecorrelationEnabled ( )

Returns the

decorrelationEnabled

option. Controls whether to disable sub-query decorrelation when needed. e.g. if outer joins are not supported.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ isExpand()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.Config.isExpand ( )

Returns the

expand

option. Controls whether to expand sub-queries. If false, each sub-query becomes a org.apache.calcite.rex.RexSubQuery.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ isExplain()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.Config.isExplain ( )

Returns the

explain

option. Describes whether the current statement is part of an EXPLAIN PLAN statement.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

◆ isTrimUnusedFields()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.Config.isTrimUnusedFields ( )

Returns the

option. Controls whether to trim unused fields as part of the conversion process.

Implemented in org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig().

+ Here is the caller graph for this function:

Member Data Documentation

◆ DEFAULT

Config org.apache.calcite.sql2rel.SqlToRelConverter.Config.DEFAULT = configBuilder().build()

Default configuration.

Definition at line 5257 of file SqlToRelConverter.java.

Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.SqlToRelConverter().


The documentation for this interface was generated from the following file: