Package org.apache.druid.server
Class ClientQuerySegmentWalkerUtils
- java.lang.Object
-
- org.apache.druid.server.ClientQuerySegmentWalkerUtils
-
public class ClientQuerySegmentWalkerUtils extends Object
Utilities forClientQuerySegmentWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientQuerySegmentWalkerUtils.SubqueryResultLimitGuardrail type on the subquery's results
-
Constructor Summary
Constructors Constructor Description ClientQuerySegmentWalkerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientQuerySegmentWalkerUtils.SubqueryResultLimitgetLimitType(long memoryLimitBytes, boolean cannotMaterializeToFrames)Returns the limit type to be used for a given subquery.
-
-
-
Method Detail
-
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
-
-