Package org.apache.druid.server
Class ClientQuerySegmentWalkerUtils
java.lang.Object
org.apache.druid.server.ClientQuerySegmentWalkerUtils
Utilities for
ClientQuerySegmentWalker-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGuardrail type on the subquery's results -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLimitType(long memoryLimitBytes, boolean cannotMaterializeToFrames) Returns the limit type to be used for a given subquery.
-
Constructor Details
-
ClientQuerySegmentWalkerUtils
public ClientQuerySegmentWalkerUtils()
-
-
Method Details
-
getLimitType
public static ClientQuerySegmentWalkerUtils.SubqueryResultLimit getLimitType(long memoryLimitBytes, boolean cannotMaterializeToFrames) Returns the limit type to be used for a given subquery. It returns MEMORY_LIMIT only if: 1. The user has enabled the 'maxSubqueryBytes' explicitly in the query context or as the server default 2. All the other subqueries in the query so far didn't fall back to ROW_BASED limit due to an error while executing the query In all the other cases, it returns ROW_LIMIT
-