Class

com.spotify.scio.bigquery.syntax

SCollectionTypedOps

Related Doc: package syntax

Permalink

final class SCollectionTypedOps[T <: HasAnnotation] extends AnyVal

Enhanced version of SCollection with BigQuery methods.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SCollectionTypedOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SCollectionTypedOps(self: SCollection[T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def saveAsTypedBigQuery(tableSpec: String, writeDisposition: WriteDisposition = ..., createDisposition: CreateDisposition = ..., timePartitioning: TimePartitioning = ...)(implicit tt: scala.reflect.api.JavaUniverse.TypeTag[T], ct: ClassTag[T], coder: Coder[T]): ClosedTap[T]

    Permalink

    Save this SCollection as a BigQuery table.

    Save this SCollection as a BigQuery table. Note that element type T must be annotated with BigQueryType.

    This could be a complete case class with BigQueryType.toTable. For example:

    @BigQueryType.toTable
    case class Result(name: String, score: Double)
    
    val p: SCollection[Result] = // process data and convert elements to Result
    p.saveAsTypedBigQuery("myproject:mydataset.mytable")

    It could also be an empty class with schema from BigQueryType.fromSchema, BigQueryType.fromTable, or BigQueryType.fromQuery. For example:

    @BigQueryType.fromTable("publicdata:samples.gsod")
    class Row
    
    sc.typedBigQuery[Row]()
      .sample(withReplacement = false, fraction = 0.1)
      .saveAsTypedBigQuery("myproject:samples.gsod")
  8. def saveAsTypedBigQuery(table: TableReference, writeDisposition: WriteDisposition, createDisposition: CreateDisposition, timePartitioning: TimePartitioning)(implicit tt: scala.reflect.api.JavaUniverse.TypeTag[T], ct: ClassTag[T], coder: Coder[T]): ClosedTap[T]

    Permalink

    Save this SCollection as a BigQuery table.

    Save this SCollection as a BigQuery table. Note that element type T must be a case class annotated with BigQueryType.toTable.

  9. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped