Package org.apache.druid.server
Enum ClientQuerySegmentWalkerUtils.SubqueryResultLimit
- java.lang.Object
-
- java.lang.Enum<ClientQuerySegmentWalkerUtils.SubqueryResultLimit>
-
- org.apache.druid.server.ClientQuerySegmentWalkerUtils.SubqueryResultLimit
-
- All Implemented Interfaces:
Serializable,Comparable<ClientQuerySegmentWalkerUtils.SubqueryResultLimit>
- Enclosing class:
- ClientQuerySegmentWalkerUtils
public static enum ClientQuerySegmentWalkerUtils.SubqueryResultLimit extends Enum<ClientQuerySegmentWalkerUtils.SubqueryResultLimit>
Guardrail type on the subquery's results
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MEMORY_LIMITSubqueries limited by the BYTE_LIMIT are materialized asFrames on heap.ROW_LIMITSubqueries limited by the ROW_LIMIT are materialized and kept as arrays (native java objects) on heap.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientQuerySegmentWalkerUtils.SubqueryResultLimitvalueOf(String name)Returns the enum constant of this type with the specified name.static ClientQuerySegmentWalkerUtils.SubqueryResultLimit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROW_LIMIT
public static final ClientQuerySegmentWalkerUtils.SubqueryResultLimit ROW_LIMIT
Subqueries limited by the ROW_LIMIT are materialized and kept as arrays (native java objects) on heap. The walker ensures that the cumulative number of rows of the results of subqueries of the given query donot exceed the limit specified in the context or as the server default
-
MEMORY_LIMIT
public static final ClientQuerySegmentWalkerUtils.SubqueryResultLimit MEMORY_LIMIT
Subqueries limited by the BYTE_LIMIT are materialized asFrames on heap. Frames depict the byte representation of the subquery results and hence the space consumed by the frames can be trivially fetched. The walker ensures that the cumulative number of rows of the results of subqueries (materialized as Frames in the broker memory) of a given query do not exceed the limit specified in the context or as the server default
-
-
Method Detail
-
values
public static ClientQuerySegmentWalkerUtils.SubqueryResultLimit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientQuerySegmentWalkerUtils.SubqueryResultLimit c : ClientQuerySegmentWalkerUtils.SubqueryResultLimit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientQuerySegmentWalkerUtils.SubqueryResultLimit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-