com.spotify.scio.bigquery.types

BigQueryType

object BigQueryType

Macro annotations and converter generators for BigQuery types.

The following table lists each legacy SQL data type, its standard SQL equivalent and Scala type.

Legacy SQL      Standard SQL    Scala type
BOOLEAN         BOOL            Boolean
INTEGER         INT64           Long, Int
FLOAT           FLOAT64         Double, Float
STRING          STRING          String
BYTES           BYTES           com.google.protobuf.ByteString, Array[Byte]
RECORD          STRUCT          Nested case class
REPEATED        ARRAY           List[T]
TIMESTAMP       TIMESTAMP       org.joda.time.Instant
DATE            DATE            org.joda.time.LocalDate
TIME            TIME            org.joda.time.LocalTime
DATETIME        DATETIME        org.joda.time.LocalDateTime
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. BigQueryType
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait HasAnnotation extends AnyRef

    Trait for case classes with generated companion objects.

  2. trait HasQuery extends AnyRef

    Trait for companion objects of case classes generated with SELECT query.

  3. trait HasSchema[T] extends AnyRef

    Trait for companion objects of case classes generated with schema.

  4. trait HasTable extends AnyRef

    Trait for companion objects of case classes generated with table.

  5. class fromQuery extends Annotation with StaticAnnotation

    Macro annotation for a BigQuery SELECT query.

  6. class fromSchema extends Annotation with StaticAnnotation

    Macro annotation for a BigQuery schema.

  7. class fromTable extends Annotation with StaticAnnotation

    Macro annotation for a BigQuery table.

  8. class toTable extends Annotation with StaticAnnotation

    Macro annotation for case classes to be saved to a BigQuery table.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): BigQueryType[T]

    Create a new BigQueryType instance.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromTableRow[T]: (google.api.services.bigquery.model.TableRow) ⇒ T

    Generate a converter function from TableRow to the given case class T.

    Generate a converter function from TableRow to the given case class T.

    Annotations
    @macroImpl( ... )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def schemaOf[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): TableSchema

    Generate TableSchema for a case class.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. def toTableRow[T]: (T) ⇒ google.api.services.bigquery.model.TableRow

    Generate a converter function from the given case class T to TableRow.

    Generate a converter function from the given case class T to TableRow.

    Annotations
    @macroImpl( ... )
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Type annotations

Converters

Traits for annotated types

Other Members