public static interface SqlToRelConverter.Config
SqlToRelConverter.CONFIGboolean isDecorrelationEnabled()
decorrelationEnabled option. Controls whether to
disable sub-query decorrelation when needed. e.g. if outer joins are not
supported.SqlToRelConverter.Config withDecorrelationEnabled(boolean decorrelationEnabled)
isDecorrelationEnabled().boolean isTrimUnusedFields()
trimUnusedFields option. Controls whether to trim
unused fields as part of the conversion process.SqlToRelConverter.Config withTrimUnusedFields(boolean trimUnusedFields)
isTrimUnusedFields().boolean isCreateValuesRel()
createValuesRel option. Controls whether instances
of LogicalValues are generated.
These may not be supported by all physical implementations.SqlToRelConverter.Config withCreateValuesRel(boolean createValuesRel)
isCreateValuesRel().boolean isExplain()
explain option. Describes whether the current
statement is part of an EXPLAIN PLAN statement.SqlToRelConverter.Config withExplain(boolean explain)
isExplain().boolean isExpand()
expand option. Controls whether to expand
sub-queries. If false, each sub-query becomes a
RexSubQuery.SqlToRelConverter.Config withExpand(boolean expand)
isExpand().int getInSubQueryThreshold()
inSubQueryThreshold option,
default SqlToRelConverter.DEFAULT_IN_SUB_QUERY_THRESHOLD. Controls the list size
threshold under which SqlToRelConverter.convertInToOr(org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard, java.util.List<org.apache.calcite.rex.RexNode>, org.apache.calcite.sql.SqlNodeList, org.apache.calcite.sql.fun.SqlInOperator) is used. Lists of this size
or greater will instead be converted to use a join against an inline
table (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.SqlToRelConverter.Config withInSubQueryThreshold(int threshold)
getInSubQueryThreshold().boolean isRemoveSortInSubQuery()
SqlToRelConverter.Config withRemoveSortInSubQuery(boolean removeSortInSubQuery)
isRemoveSortInSubQuery().RelBuilderFactory getRelBuilderFactory()
RelBuilder, never null. Default is
RelFactories.LOGICAL_BUILDER.SqlToRelConverter.Config withRelBuilderFactory(RelBuilderFactory factory)
getRelBuilderFactory().UnaryOperator<RelBuilder.Config> getRelBuilderConfigTransform()
RelBuilder.Config and returns
another. Default is the identity function.SqlToRelConverter.Config withRelBuilderConfigTransform(UnaryOperator<RelBuilder.Config> transform)
default SqlToRelConverter.Config addRelBuilderConfigTransform(UnaryOperator<RelBuilder.Config> transform)
getRelBuilderConfigTransform().HintStrategyTable getHintStrategyTable()
HintStrategyTable.EMPTY.SqlToRelConverter.Config withHintStrategyTable(HintStrategyTable hintStrategyTable)
getHintStrategyTable().Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.