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, BigQueryType.fromQuery, or BigQueryType.toTable.
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") // Read from a query instead. sc.getTypedRows[Row]("SELECT * FROM [publicdata:samples.gsod] LIMIT 1000")
Write a List of rows to a BigQuery table.
Write a List of rows to a BigQuery table. Note that element type T
must be annotated with
BigQueryType.
Write a List of rows to a BigQuery table.
Write a List of rows to a BigQuery table. Note that element type T
must be annotated with
BigQueryType.
Enhanced version of BigQueryClient with type-safe features.