OmniSciDB  29e35f4d58
org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder Class Reference
+ Collaboration diagram for org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder:

Public Member Functions

ConfigBuilder withConfig (Config config)
 
ConfigBuilder withConvertTableAccess (boolean convertTableAccess)
 
ConfigBuilder withDecorrelationEnabled (boolean enabled)
 
ConfigBuilder withTrimUnusedFields (boolean trimUnusedFields)
 
ConfigBuilder withCreateValuesRel (boolean createValuesRel)
 
ConfigBuilder withExplain (boolean explain)
 
ConfigBuilder withExpand (boolean expand)
 
ConfigBuilder withPushdownJoinCondition (BiPredicate< SqlNode, Join > pushdown)
 
ConfigBuilder withExpandPredicate (BiPredicate< SqlNode, SqlNode > predicate)
 
ConfigBuilder withInSubqueryThreshold (int inSubQueryThreshold)
 
ConfigBuilder withInSubQueryThreshold (int inSubQueryThreshold)
 
ConfigBuilder withRelBuilderFactory (RelBuilderFactory relBuilderFactory)
 
Config build ()
 

Private Member Functions

 ConfigBuilder ()
 

Private Attributes

boolean convertTableAccess = true
 
boolean decorrelationEnabled = true
 
boolean trimUnusedFields = false
 
boolean createValuesRel = true
 
boolean explain
 
boolean expand = true
 
BiPredicate< SqlNode, Join > pushdownJoinCondition
 
int inSubQueryThreshold = DEFAULT_IN_SUB_QUERY_THRESHOLD
 
RelBuilderFactory relBuilderFactory = RelFactories.LOGICAL_BUILDER
 
BiPredicate< SqlNode, SqlNode > expandPredicate
 

Detailed Description

Builder for a Config.

Definition at line 5384 of file SqlToRelConverter.java.

Constructor & Destructor Documentation

◆ ConfigBuilder()

org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.ConfigBuilder ( )
inlineprivate

Definition at line 5396 of file SqlToRelConverter.java.

5396 {}

Member Function Documentation

◆ build()

Config org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.build ( )
inline

Builds a Config.

Definition at line 5471 of file SqlToRelConverter.java.

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

5471  {
5472  return new ConfigImpl(convertTableAccess,
5476  explain,
5477  expand,
5482  }
+ Here is the caller graph for this function:

◆ withConfig()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConfig ( Config  config)
inline

Sets configuration identical to a given Config.

Definition at line 5399 of file SqlToRelConverter.java.

References org.apache.calcite.sql2rel.SqlToRelConverter.Config.getExpandPredicate(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.getInSubQueryThreshold(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.getPushdownJoinCondition(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.getRelBuilderFactory(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.isConvertTableAccess(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.isCreateValuesRel(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.isDecorrelationEnabled(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.isExpand(), org.apache.calcite.sql2rel.SqlToRelConverter.Config.isExplain(), and org.apache.calcite.sql2rel.SqlToRelConverter.Config.isTrimUnusedFields().

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

5399  {
5400  this.convertTableAccess = config.isConvertTableAccess();
5401  this.decorrelationEnabled = config.isDecorrelationEnabled();
5403  this.createValuesRel = config.isCreateValuesRel();
5404  this.explain = config.isExplain();
5405  this.expand = config.isExpand();
5406  this.inSubQueryThreshold = config.getInSubQueryThreshold();
5407  this.relBuilderFactory = config.getRelBuilderFactory();
5408  if (!(config.getExpandPredicate() instanceof ConfigImpl.DefaultExpandPredicate)) {
5409  this.expandPredicate = config.getExpandPredicate();
5410  }
5411  this.pushdownJoinCondition = config.getPushdownJoinCondition();
5412  return this;
5413  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withConvertTableAccess()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withConvertTableAccess ( boolean  convertTableAccess)
inline

Definition at line 5415 of file SqlToRelConverter.java.

5415  {
5417  return this;
5418  }

◆ withCreateValuesRel()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withCreateValuesRel ( boolean  createValuesRel)
inline

Definition at line 5430 of file SqlToRelConverter.java.

5430  {
5432  return this;
5433  }

◆ withDecorrelationEnabled()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withDecorrelationEnabled ( boolean  enabled)
inline

Definition at line 5420 of file SqlToRelConverter.java.

5420  {
5421  this.decorrelationEnabled = enabled;
5422  return this;
5423  }

◆ withExpand()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withExpand ( boolean  expand)
inline

Definition at line 5440 of file SqlToRelConverter.java.

5440  {
5441  this.expand = expand;
5442  return this;
5443  }

◆ withExpandPredicate()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withExpandPredicate ( BiPredicate< SqlNode, SqlNode >  predicate)
inline

Definition at line 5450 of file SqlToRelConverter.java.

5450  {
5451  this.expandPredicate = predicate;
5452  return this;
5453  }

◆ withExplain()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withExplain ( boolean  explain)
inline

Definition at line 5435 of file SqlToRelConverter.java.

5435  {
5436  this.explain = explain;
5437  return this;
5438  }

◆ withInSubqueryThreshold()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withInSubqueryThreshold ( int  inSubQueryThreshold)
inline

◆ withInSubQueryThreshold()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withInSubQueryThreshold ( int  inSubQueryThreshold)
inline

Definition at line 5460 of file SqlToRelConverter.java.

◆ withPushdownJoinCondition()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withPushdownJoinCondition ( BiPredicate< SqlNode, Join >  pushdown)
inline

Definition at line 5445 of file SqlToRelConverter.java.

5445  {
5446  this.pushdownJoinCondition = pushdown;
5447  return this;
5448  }

◆ withRelBuilderFactory()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withRelBuilderFactory ( RelBuilderFactory  relBuilderFactory)
inline

Definition at line 5465 of file SqlToRelConverter.java.

5465  {
5467  return this;
5468  }

◆ withTrimUnusedFields()

ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withTrimUnusedFields ( boolean  trimUnusedFields)
inline

Definition at line 5425 of file SqlToRelConverter.java.

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

5425  {
5427  return this;
5428  }
+ Here is the call graph for this function:

Member Data Documentation

◆ convertTableAccess

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.convertTableAccess = true
private

Definition at line 5385 of file SqlToRelConverter.java.

◆ createValuesRel

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.createValuesRel = true
private

Definition at line 5388 of file SqlToRelConverter.java.

◆ decorrelationEnabled

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.decorrelationEnabled = true
private

Definition at line 5386 of file SqlToRelConverter.java.

◆ expand

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.expand = true
private

Definition at line 5390 of file SqlToRelConverter.java.

◆ expandPredicate

BiPredicate<SqlNode, SqlNode> org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.expandPredicate
private

Definition at line 5394 of file SqlToRelConverter.java.

◆ explain

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.explain
private

Definition at line 5389 of file SqlToRelConverter.java.

◆ inSubQueryThreshold

int org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.inSubQueryThreshold = DEFAULT_IN_SUB_QUERY_THRESHOLD
private

Definition at line 5392 of file SqlToRelConverter.java.

◆ pushdownJoinCondition

BiPredicate<SqlNode, Join> org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.pushdownJoinCondition
private

Definition at line 5391 of file SqlToRelConverter.java.

◆ relBuilderFactory

RelBuilderFactory org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.relBuilderFactory = RelFactories.LOGICAL_BUILDER
private

Definition at line 5393 of file SqlToRelConverter.java.

◆ trimUnusedFields

boolean org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.trimUnusedFields = false
private

Definition at line 5387 of file SqlToRelConverter.java.


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