OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Definition at line 5396 of file SqlToRelConverter.java.

5396 {}

Member Function Documentation

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

Builds a Config.

Definition at line 5471 of file SqlToRelConverter.java.

5471  {
5472  return new ConfigImpl(convertTableAccess,
5476  explain,
5477  expand,
5482  }
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().

5399  {
5400  this.convertTableAccess = config.isConvertTableAccess();
5401  this.decorrelationEnabled = config.isDecorrelationEnabled();
5402  this.trimUnusedFields = config.isTrimUnusedFields();
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:

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

Definition at line 5415 of file SqlToRelConverter.java.

5415  {
5416  this.convertTableAccess = convertTableAccess;
5417  return this;
5418  }
ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withCreateValuesRel ( boolean  createValuesRel)
inline

Definition at line 5430 of file SqlToRelConverter.java.

5430  {
5431  this.createValuesRel = createValuesRel;
5432  return this;
5433  }
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  }
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  }
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  }
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  }
ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withInSubqueryThreshold ( int  inSubQueryThreshold)
inline
ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withInSubQueryThreshold ( int  inSubQueryThreshold)
inline

Definition at line 5460 of file SqlToRelConverter.java.

5460  {
5461  this.inSubQueryThreshold = inSubQueryThreshold;
5462  return this;
5463  }
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  }
ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withRelBuilderFactory ( RelBuilderFactory  relBuilderFactory)
inline

Definition at line 5465 of file SqlToRelConverter.java.

5465  {
5466  this.relBuilderFactory = relBuilderFactory;
5467  return this;
5468  }
ConfigBuilder org.apache.calcite.sql2rel.SqlToRelConverter.ConfigBuilder.withTrimUnusedFields ( boolean  trimUnusedFields)
inline

Definition at line 5425 of file SqlToRelConverter.java.

5425  {
5426  this.trimUnusedFields = trimUnusedFields;
5427  return this;
5428  }

Member Data Documentation

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

Definition at line 5385 of file SqlToRelConverter.java.

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

Definition at line 5388 of file SqlToRelConverter.java.

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

Definition at line 5386 of file SqlToRelConverter.java.

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

Definition at line 5390 of file SqlToRelConverter.java.

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

Definition at line 5394 of file SqlToRelConverter.java.

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

Definition at line 5389 of file SqlToRelConverter.java.

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

Definition at line 5392 of file SqlToRelConverter.java.

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

Definition at line 5391 of file SqlToRelConverter.java.

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

Definition at line 5393 of file SqlToRelConverter.java.

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: