Class PlannerConfig
java.lang.Object
org.apache.druid.sql.calcite.planner.PlannerConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forPlannerConfig, primarily for use in tests to allow setting options programmatically rather than from the command line or a properties file. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlannerConfig.Builderbuilder()booleanintintTranslatesPlannerConfigsettings into its equivalent QueryContext map.org.joda.time.DateTimeZoneinthashCode()booleanbooleanbooleanReturns whether the sys.queries table is enabled.booleanbooleanbooleanbooleanbooleanbooleanbooleantoString()withOverrides(Map<String, Object> queryContext)
-
Field Details
-
CTX_KEY_USE_APPROXIMATE_COUNT_DISTINCT
- See Also:
-
CTX_KEY_USE_GROUPING_SET_FOR_EXACT_DISTINCT
- See Also:
-
CTX_KEY_USE_APPROXIMATE_TOPN
- See Also:
-
CTX_KEY_USE_LEXICOGRAPHIC_TOPN
- See Also:
-
CTX_COMPUTE_INNER_JOIN_COST_AS_FILTER
- See Also:
-
CTX_KEY_USE_NATIVE_QUERY_EXPLAIN
- See Also:
-
CTX_KEY_FORCE_EXPRESSION_VIRTUAL_COLUMNS
- See Also:
-
CTX_MAX_NUMERIC_IN_FILTERS
- See Also:
-
CTX_REQUIRE_TIME_CONDITION
- See Also:
-
NUM_FILTER_NOT_USED
public static final int NUM_FILTER_NOT_USED- See Also:
-
-
Constructor Details
-
PlannerConfig
public PlannerConfig()
-
-
Method Details
-
getMaxNumericInFilters
public int getMaxNumericInFilters() -
getMaxTopNLimit
public int getMaxTopNLimit() -
isUseApproximateCountDistinct
public boolean isUseApproximateCountDistinct() -
isUseGroupingSetForExactDistinct
public boolean isUseGroupingSetForExactDistinct() -
isUseApproximateTopN
public boolean isUseApproximateTopN() -
isUseLexicographicTopN
public boolean isUseLexicographicTopN() -
isRequireTimeCondition
public boolean isRequireTimeCondition() -
getSqlTimeZone
public org.joda.time.DateTimeZone getSqlTimeZone() -
isComputeInnerJoinCostAsFilter
public boolean isComputeInnerJoinCostAsFilter() -
isAuthorizeSystemTablesDirectly
public boolean isAuthorizeSystemTablesDirectly() -
isUseNativeQueryExplain
public boolean isUseNativeQueryExplain() -
isForceExpressionVirtualColumns
public boolean isForceExpressionVirtualColumns()- Returns:
- true if special virtual columns should not be optimized and should always be of type "expressions", false otherwise.
-
getNativeQuerySqlPlanningMode
-
isEnableSysQueriesTable
public boolean isEnableSysQueriesTable()Returns whether the sys.queries table is enabled. -
withOverrides
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-
toBuilder
-
getNonDefaultAsQueryContext
TranslatesPlannerConfigsettings into its equivalent QueryContext map.- Throws:
DruidException- if the translation is not possible.
-