package types
- Source
- types.scala
- Alphabetic
- By Inheritance
- types
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class AvroType[T] extends Serializable
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.
- class doc extends Annotation with StaticAnnotation
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)
- Annotations
- @nowarn()
Value Members
- object AvroType extends Serializable
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
- object ConverterUtil
- object SchemaUtil
Utility for Avro schemas.