Package

com.spotify.scio.avro

types

Permalink

package types

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

Type Members

  1. class AvroType[T] extends Serializable

    Permalink

    Type class for case class T annotated for Avro IO.

    Type class for case class T annotated for Avro IO.

    This decouples generated fields and methods from macro expansion to keep core macro free.

  2. class doc extends Annotation with StaticAnnotation

    Permalink

    Case class and argument annotation to get Avro field and record docs.

    Case class and argument annotation to get Avro field and record docs.

    To be used with case class fields annotated with AvroType.toSchema, For example:

    Example:

    AvroType.toSchema
    @doc("User Record")
    case class User(@doc("user name") name: String,
                    @doc("user age") age: Int)

Value Members

  1. object AvroType extends Serializable

    Permalink

    Macro annotations and converter generators for Avro types.

    Macro annotations and converter generators for Avro types.

    The following table lists Avro types and their Scala counterparts.

    Avro type      Scala type
    BOOLEAN        Boolean
    LONG           Long
    INT            Int
    DOUBLE         Double
    FLOAT          Float
    STRING, ENUM   String
    BYTES          com.google.protobuf.ByteString
    ARRAY          List[T]
    MAP            Map[String, T]
    UNION          Option[T]
    RECORD         Nested case class
  2. object ConverterUtil

    Permalink
  3. object SchemaUtil

    Permalink

    Utility for Avro schemas.

Inherited from AnyRef

Inherited from Any

Ungrouped