Enum Class OutputType

java.lang.Object
java.lang.Enum<OutputType>
org.apache.camel.component.google.bigquery.sql.OutputType
All Implemented Interfaces:
Serializable, Comparable<OutputType>, Constable

public enum OutputType extends Enum<OutputType>
Output type for SELECT query results.
  • Enum Constant Details

    • SELECT_LIST

      public static final OutputType SELECT_LIST
      Returns all results as List<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

      public static final OutputType STREAM_LIST
      Returns a streaming Iterator<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

      public static OutputType[] 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

      public static OutputType valueOf(String name)
      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 name
      NullPointerException - if the argument is null