Get a typed iterator for a BigQuery SELECT query or table.
Get a typed iterator for a BigQuery SELECT query or table.
Note that T
must be annotated with BigQueryType.fromSchema,
BigQueryType.fromTable, or BigQueryType.fromQuery.
By default the source (table or query) specified in the annotation will be used, but it can
be overridden with the newSource
parameter. For example:
@BigQueryType.fromTable("publicdata:samples.gsod") class Row // Read from [publicdata:samples.gsod] as specified in the annotation. bq.getTypedRows[Row]() // Read from [myproject:samples.gsod] instead. bq.getTypedRows[Row]("myproject:samples.gsod")
Write a List to a BigQuery table.
Write a List to a BigQuery table. Note that element type T
must be annotated with BigQueryType.
Enhanced version of BigQueryClient with type-safe features.