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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. bigquery
  2. AnyRef
  3. 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 class BigQuerySCollection[T] extends Serializable

    Permalink

    Enhanced version of SCollection with BigQuery methods.

  3. final class BigQueryScioContext extends Serializable

    Permalink

    Enhanced version of ScioContext with BigQuery methods.

  4. 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.

  5. final case class BigQueryTable(tableSpec: String) 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. 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.

  10. class MockTable extends AnyRef

    Permalink

    A BigQuery table being mocked for test.

  11. implicit final class RichTableReference extends AnyVal

    Permalink

    Enhanced version of TableReference.

  12. implicit final class RichTableRow extends AnyVal

    Permalink

    Enhanced version of TableRow with typed getters.

  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 BigQuerySysProps extends SysProps

    Permalink
  4. object BigQueryTable extends Serializable

    Permalink
  5. object BigQueryTaps extends Serializable

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

    Permalink

    Typed BigQuery annotations and converters.

  7. object BigQueryTyped

    Permalink
  8. object BigQueryUtil

    Permalink

    Utility for BigQuery data types.

  9. val CREATE_IF_NEEDED: CreateDisposition

    Permalink

    Alias for BigQuery CreateDisposition.

  10. val CREATE_NEVER: CreateDisposition

    Permalink

    Alias for BigQuery CreateDisposition.

  11. object Date

    Permalink

    Utility for BigQuery DATE type.

  12. object DateTime

    Permalink

    Utility for BigQuery DATETIME type.

  13. object MockBigQuery

    Permalink

    Companion object for MockBigQuery.

  14. object Numeric

    Permalink
  15. 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)
  16. object TableRowJsonIO extends Serializable

    Permalink
  17. object Time

    Permalink

    Utility for BigQuery TIME type.

  18. object Timestamp

    Permalink

    Utility for BigQuery TIMESTAMP type.

  19. val WRITE_APPEND: WriteDisposition

    Permalink

    Alias for BigQuery WriteDisposition.

  20. val WRITE_EMPTY: WriteDisposition

    Permalink

    Alias for BigQuery WriteDisposition.

  21. val WRITE_TRUNCATE: WriteDisposition

    Permalink

    Alias for BigQuery WriteDisposition.

  22. package client

    Permalink
  23. package dynamic

    Permalink

    BigQuery package for dynamic table destinations.

    BigQuery package for dynamic table destinations. Import All.

    import com.spotify.scio.bigquery.dynamic._
  24. implicit def toBigQuerySCollection[T](c: SCollection[T]): BigQuerySCollection[T]

    Permalink
  25. implicit def toBigQueryScioContext(c: ScioContext): BigQueryScioContext

    Permalink
  26. package types

    Permalink
  27. package validation

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped