Package org.apache.druid.query.groupby
Class GroupByQueryConfig
- java.lang.Object
-
- org.apache.druid.query.groupby.GroupByQueryConfig
-
public class GroupByQueryConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
AUTOMATIC
static String
CTX_KEY_APPLY_LIMIT_PUSH_DOWN
static String
CTX_KEY_APPLY_LIMIT_PUSH_DOWN_TO_SEGMENT
static String
CTX_KEY_ARRAY_RESULT_ROWS
static String
CTX_KEY_BUFFER_GROUPER_MAX_SIZE
static String
CTX_KEY_ENABLE_MULTI_VALUE_UNNESTING
static String
CTX_KEY_EXECUTING_NESTED_QUERY
static String
CTX_KEY_FORCE_LIMIT_PUSH_DOWN
static String
CTX_KEY_FORCE_PUSH_DOWN_NESTED_QUERY
-
Constructor Summary
Constructors Constructor Description GroupByQueryConfig()
-
Method Summary
-
-
-
Field Detail
-
AUTOMATIC
public static final long AUTOMATIC
- See Also:
- Constant Field Values
-
CTX_KEY_FORCE_LIMIT_PUSH_DOWN
public static final String CTX_KEY_FORCE_LIMIT_PUSH_DOWN
- See Also:
- Constant Field Values
-
CTX_KEY_APPLY_LIMIT_PUSH_DOWN
public static final String CTX_KEY_APPLY_LIMIT_PUSH_DOWN
- See Also:
- Constant Field Values
-
CTX_KEY_APPLY_LIMIT_PUSH_DOWN_TO_SEGMENT
public static final String CTX_KEY_APPLY_LIMIT_PUSH_DOWN_TO_SEGMENT
- See Also:
- Constant Field Values
-
CTX_KEY_FORCE_PUSH_DOWN_NESTED_QUERY
public static final String CTX_KEY_FORCE_PUSH_DOWN_NESTED_QUERY
- See Also:
- Constant Field Values
-
CTX_KEY_EXECUTING_NESTED_QUERY
public static final String CTX_KEY_EXECUTING_NESTED_QUERY
- See Also:
- Constant Field Values
-
CTX_KEY_ARRAY_RESULT_ROWS
public static final String CTX_KEY_ARRAY_RESULT_ROWS
- See Also:
- Constant Field Values
-
CTX_KEY_ENABLE_MULTI_VALUE_UNNESTING
public static final String CTX_KEY_ENABLE_MULTI_VALUE_UNNESTING
- See Also:
- Constant Field Values
-
CTX_KEY_BUFFER_GROUPER_MAX_SIZE
public static final String CTX_KEY_BUFFER_GROUPER_MAX_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSingleThreaded
public boolean isSingleThreaded()
-
setSingleThreaded
public void setSingleThreaded(boolean singleThreaded)
-
getBufferGrouperMaxSize
public int getBufferGrouperMaxSize()
-
getBufferGrouperMaxLoadFactor
public float getBufferGrouperMaxLoadFactor()
-
getBufferGrouperInitialBuckets
public int getBufferGrouperInitialBuckets()
-
getActualMaxSelectorDictionarySize
public long getActualMaxSelectorDictionarySize(DruidProcessingConfig processingConfig)
-
getActualMaxMergingDictionarySize
public long getActualMaxMergingDictionarySize(long maxHeapSize, int numConcurrentQueries)
For unit tests. Production code should usegetActualMaxMergingDictionarySize(long, int)
.
-
getActualMaxMergingDictionarySize
public long getActualMaxMergingDictionarySize(DruidProcessingConfig processingConfig)
-
getMaxOnDiskStorage
public HumanReadableBytes getMaxOnDiskStorage()
-
getDefaultOnDiskStorage
public HumanReadableBytes getDefaultOnDiskStorage()
Mirror maxOnDiskStorage if defaultOnDiskStorage's default is not overridden by cluster operator. This mirroring is done to maintain continuity in behavior between Druid versions. If an operator wants to use defaultOnDiskStorage, they have to explicitly override it.- Returns:
- The working value for defaultOnDiskStorage
-
isForcePushDownLimit
public boolean isForcePushDownLimit()
-
isApplyLimitPushDownToSegment
public boolean isApplyLimitPushDownToSegment()
-
isForceHashAggregation
public boolean isForceHashAggregation()
-
getIntermediateCombineDegree
public int getIntermediateCombineDegree()
-
getNumParallelCombineThreads
public int getNumParallelCombineThreads()
-
isMergeThreadLocal
public boolean isMergeThreadLocal()
-
isVectorize
public boolean isVectorize()
-
isIntermediateResultAsMapCompat
public boolean isIntermediateResultAsMapCompat()
-
isForcePushDownNestedQuery
public boolean isForcePushDownNestedQuery()
-
isMultiValueUnnestingEnabled
public boolean isMultiValueUnnestingEnabled()
-
withOverrides
public GroupByQueryConfig withOverrides(GroupByQuery query)
-
-