Package

com.spotify.scio

bigquery

Permalink

package bigquery

Main package for BigQuery APIs. Import all.

import com.spotify.scio.bigquery._

There are two BigQuery dialects, legacy and standard. APIs that take a BigQuery query string as argument, e.g. com.spotify.scio.bigquery.client.BigQuery.query.rows, com.spotify.scio.bigquery.client.BigQuery.query.schema, com.spotify.scio.bigquery.client.BigQuery.getTypedRows and BigQueryType.fromQuery, automatically detects the query's dialect. To override this, start the query with either #legacysql or #standardsql comment line.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. bigquery
  2. AllSyntax
  3. ScioContextSyntax
  4. SCollectionSyntax
  5. TableReferenceSyntax
  6. TableRowSyntax
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait BigQueryIO[T] extends ScioIO[T]

    Permalink
  2. final case class BigQuerySelect(sqlQuery: String) extends BigQueryIO[TableRow] with Product with Serializable

    Permalink

    Get an SCollection for a BigQuery SELECT query.

    Get an SCollection for a BigQuery SELECT query. Both Legacy SQL and Standard SQL dialects are supported. By default the query dialect will be automatically detected. To override this behavior, start the query string with #legacysql or #standardsql.

  3. final case class BigQueryStorage(table: Table) extends BigQueryIO[TableRow] with Product with Serializable

    Permalink

    Get an IO for a BigQuery table using the storage API.

  4. final case class BigQueryStorageTap(table: Table, readOptions: TableReadOptions) extends Tap[TableRow] with Product with Serializable

    Permalink

    Tap for BigQuery tables using storage api.

  5. final case class BigQueryTable(table: Table) extends BigQueryIO[TableRow] with Product with Serializable

    Permalink

    Get an IO for a BigQuery table.

  6. type BigQueryTag = bigquery.types.BigQueryTag

    Permalink

    BigQuery tag for macro generated classes/fields.

  7. final case class BigQueryTap(table: TableReference) extends Tap[TableRow] with Product with Serializable

    Permalink

    Tap for BigQuery tables.

  8. final case class BigQueryTaps(self: Taps) extends Product with Serializable

    Permalink
  9. sealed trait ExtendedErrorInfo extends AnyRef

    Permalink
  10. class MockBigQuery extends AnyRef

    Permalink

    Mock BigQuery environment for integration test.

    Mock BigQuery environment for integration test.

    Use mockTable to feed data into live BigQuery service and queryResult to query them.

  11. class MockTable extends AnyRef

    Permalink

    A BigQuery table being mocked for test.

  12. sealed trait Table extends AnyRef

    Permalink
  13. type TableRow = google.api.services.bigquery.model.TableRow

    Permalink

    Alias for BigQuery TableRow.

  14. final case class TableRowJsonIO(path: String) extends ScioIO[TableRow] with Product with Serializable

    Permalink

    Get an IO for a BigQuery TableRow JSON file.

  15. final case class TableRowJsonTap(path: String) extends Tap[TableRow] with Product with Serializable

    Permalink

    Tap for BigQuery TableRow JSON files.

  16. case class TimePartitioning(type: String, field: String = null, expirationMs: Long = 0, requirePartitionFilter: Boolean = false) extends Product with Serializable

    Permalink

    Scala wrapper for com.google.api.services.bigquery.model.TimePartitioning.

  17. type description = bigquery.types.description

    Permalink

    Annotation for BigQuery field description.

Value Members

  1. object BigQueryIO

    Permalink
  2. object BigQuerySelect extends Serializable

    Permalink
  3. object BigQueryStorage extends Serializable

    Permalink
  4. object BigQuerySysProps extends SysProps

    Permalink
  5. object BigQueryTable extends Serializable

    Permalink
  6. object BigQueryTaps extends Serializable

    Permalink
  7. val BigQueryType: bigquery.types.BigQueryType.type

    Permalink

    Typed BigQuery annotations and converters.

  8. object BigQueryTyped

    Permalink
  9. object BigQueryUtil

    Permalink

    Utility for BigQuery data types.

  10. val CREATE_IF_NEEDED: CreateDisposition

    Permalink

    Alias for BigQuery CreateDisposition.

  11. val CREATE_NEVER: CreateDisposition

    Permalink

    Alias for BigQuery CreateDisposition.

  12. object Date

    Permalink

    Utility for BigQuery DATE type.

  13. object DateTime

    Permalink

    Utility for BigQuery DATETIME type.

  14. object ExtendedErrorInfo

    Permalink
  15. object MockBigQuery

    Permalink

    Companion object for MockBigQuery.

  16. object Numeric

    Permalink
  17. object StorageUtil

    Permalink

    Utility for BigQuery Storage API.

  18. object Table

    Permalink
  19. object TableRow

    Permalink

    Create a TableRow with Map-like syntax.

    Create a TableRow with Map-like syntax. For example:

    val r = TableRow("name" -> "Alice", "score" -> 100)
  20. object TableRowJsonIO extends Serializable

    Permalink
  21. object Time

    Permalink

    Utility for BigQuery TIME type.

  22. object Timestamp

    Permalink

    Utility for BigQuery TIMESTAMP type.

  23. val WRITE_APPEND: WriteDisposition

    Permalink

    Alias for BigQuery WriteDisposition.

  24. val WRITE_EMPTY: WriteDisposition

    Permalink

    Alias for BigQuery WriteDisposition.

  25. val WRITE_TRUNCATE: WriteDisposition

    Permalink

    Alias for BigQuery WriteDisposition.

  26. implicit def bigQuerySCollectionTableRowOps[T <: TableRow](sc: SCollection[T]): SCollectionTableRowOps[T]

    Permalink
    Definition Classes
    SCollectionSyntax
  27. implicit def bigQuerySCollectionTypedOps[T <: HasAnnotation](sc: SCollection[T]): SCollectionTypedOps[T]

    Permalink
    Definition Classes
    SCollectionSyntax
  28. implicit def bigQueryScioContextOps(sc: ScioContext): ScioContextOps

    Permalink
    Definition Classes
    ScioContextSyntax
  29. implicit def bigQueryTableRefOps(r: TableReference): TableReferenceOps

    Permalink
    Definition Classes
    TableReferenceSyntax
  30. implicit def bigQueryTableRowOps(tr: TableRow): TableRowOps

    Permalink
    Definition Classes
    TableRowSyntax
  31. package client

    Permalink
  32. package dynamic

    Permalink

    BigQuery package for dynamic table destinations.

    BigQuery package for dynamic table destinations. Import All.

    import com.spotify.scio.bigquery.dynamic._
  33. package syntax

    Permalink
  34. package types

    Permalink
  35. package validation

    Permalink

Inherited from AllSyntax

Inherited from ScioContextSyntax

Inherited from SCollectionSyntax

Inherited from TableReferenceSyntax

Inherited from TableRowSyntax

Inherited from AnyRef

Inherited from Any

Ungrouped