@Value.Immutable(singleton=false)
public static interface SqlToRelConverter.Config
SqlToRelConverter.CONFIG@Value.Default default boolean 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().@Value.Default default boolean isTrimUnusedFields()
trimUnusedFields option. Controls whether to trim
unused fields as part of the conversion process.SqlToRelConverter.Config withTrimUnusedFields(boolean trimUnusedFields)
isTrimUnusedFields().@Value.Default default 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().@Value.Default default boolean isExplain()
explain option. Describes whether the current
statement is part of an EXPLAIN PLAN statement.SqlToRelConverter.Config withExplain(boolean explain)
isExplain().@Value.Default default boolean isExpand()
expand option. Controls whether to expand
sub-queries. If false, each sub-query becomes a
RexSubQuery.SqlToRelConverter.Config withExpand(boolean expand)
isExpand().@Value.Default default 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().@Value.Default default 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().@Value.Default default boolean isAddJsonTypeOperatorEnabled()
SqlStdOperatorTable.JSON_TYPE_OPERATOR for between json functions.SqlToRelConverter.Config withAddJsonTypeOperatorEnabled(boolean addJsonTypeOperatorEnabled)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.