Enum Class OutputType
- All Implemented Interfaces:
Serializable,Comparable<OutputType>,Constable
Output type for SELECT query results.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns all results asList<Map<String, Object>>(default).Returns a streamingIterator<Map<String, Object>>. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputTypeReturns the enum constant of this class with the specified name.static OutputType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELECT_LIST
Returns all results asList<Map<String, Object>>(default). Loads all rows into memory. Sets pagination headers for manual page control.Use when: result set fits in memory, need multiple access to rows, require manual pagination.
-
STREAM_LIST
Returns a streamingIterator<Map<String, Object>>. Memory-efficient lazy loading for large result sets. Uses pageSize for internal fetch size. Pagination handled automatically. Does NOT set NextPageToken or JobId headers.Use when: processing large result sets, one-time row processing, streaming to another endpoint.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-