OmniSciDB  c07336695a
org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl Class Reference
+ Inheritance diagram for org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl:
+ Collaboration diagram for org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl:

Public Member Functions

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

Private Member Functions

 ConfigImpl (boolean convertTableAccess, boolean decorrelationEnabled, boolean trimUnusedFields, boolean createValuesRel, boolean explain, boolean expand, int inSubQueryThreshold, RelBuilderFactory relBuilderFactory)
 

Private Attributes

final boolean convertTableAccess
 
final boolean decorrelationEnabled
 
final boolean trimUnusedFields
 
final boolean createValuesRel
 
final boolean explain
 
final boolean expand
 
final int inSubQueryThreshold
 
final RelBuilderFactory relBuilderFactory
 

Additional Inherited Members

- Public Attributes inherited from org.apache.calcite.sql2rel.SqlToRelConverter.Config
Config DEFAULT = configBuilder().build()
 

Detailed Description

Implementation of Config. Called by builder; all values are in private final fields.

Definition at line 5409 of file SqlToRelConverter.java.

Constructor & Destructor Documentation

◆ ConfigImpl()

org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.ConfigImpl ( boolean  convertTableAccess,
boolean  decorrelationEnabled,
boolean  trimUnusedFields,
boolean  createValuesRel,
boolean  explain,
boolean  expand,
int  inSubQueryThreshold,
RelBuilderFactory  relBuilderFactory 
)
inlineprivate

Definition at line 5419 of file SqlToRelConverter.java.

References org.apache.calcite.sql2rel.SqlToRelConverter.trimUnusedFields().

5426  {
5431  this.explain = explain;
5432  this.expand = expand;
5435  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getInSubQueryThreshold()

int org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.getInSubQueryThreshold ( )
inline

Returns the

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.

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5461 of file SqlToRelConverter.java.

◆ getRelBuilderFactory()

RelBuilderFactory org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.getRelBuilderFactory ( )
inline

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

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5465 of file SqlToRelConverter.java.

5465  {
5466  return relBuilderFactory;
5467  }

◆ isConvertTableAccess()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.isConvertTableAccess ( )
inline

Returns the

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.

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5437 of file SqlToRelConverter.java.

◆ isCreateValuesRel()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.isCreateValuesRel ( )
inline

Returns the

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

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5449 of file SqlToRelConverter.java.

5449  {
5450  return createValuesRel;
5451  }

◆ isDecorrelationEnabled()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.isDecorrelationEnabled ( )
inline

Returns the

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

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5441 of file SqlToRelConverter.java.

◆ isExpand()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.isExpand ( )
inline

Returns the

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

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5457 of file SqlToRelConverter.java.

5457  {
5458  return expand;
5459  }

◆ isExplain()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.isExplain ( )
inline

Returns the

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

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5453 of file SqlToRelConverter.java.

5453  {
5454  return explain;
5455  }

◆ isTrimUnusedFields()

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.isTrimUnusedFields ( )
inline

Returns the

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

Implements org.apache.calcite.sql2rel.SqlToRelConverter.Config.

Definition at line 5445 of file SqlToRelConverter.java.

References org.apache.calcite.sql2rel.SqlToRelConverter.trimUnusedFields().

5445  {
5446  return trimUnusedFields;
5447  }
+ Here is the call graph for this function:

Member Data Documentation

◆ convertTableAccess

final boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.convertTableAccess
private

Definition at line 5410 of file SqlToRelConverter.java.

◆ createValuesRel

final boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.createValuesRel
private

Definition at line 5413 of file SqlToRelConverter.java.

◆ decorrelationEnabled

final boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.decorrelationEnabled
private

Definition at line 5411 of file SqlToRelConverter.java.

◆ expand

final boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.expand
private

Definition at line 5415 of file SqlToRelConverter.java.

◆ explain

final boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.explain
private

Definition at line 5414 of file SqlToRelConverter.java.

◆ inSubQueryThreshold

final int org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.inSubQueryThreshold
private

Definition at line 5416 of file SqlToRelConverter.java.

◆ relBuilderFactory

final RelBuilderFactory org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.relBuilderFactory
private

Definition at line 5417 of file SqlToRelConverter.java.

◆ trimUnusedFields

final boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigImpl.trimUnusedFields
private

Definition at line 5412 of file SqlToRelConverter.java.


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