org.typelevel.vulcan

Members list

Type members

Classlikes

object AvroException

Attributes

Companion
class
Source
AvroException.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class AvroException extends RuntimeException, NoStackTrace

Exception raised when generating a schema, or when encoding or decoding fails.

Exception raised when generating a schema, or when encoding or decoding fails.

Use AvroException(message) or AvroException(message, cause) to create exceptions, for example when decoding fails in custom codecs.

Attributes

Companion
object
Source
AvroException.scala
Supertypes
trait NoStackTrace
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
sealed abstract class AvroValue extends Product, Serializable

Avro value interpreted according to a Schema.

Avro value interpreted according to a Schema.

Attributes

Companion
object
Source
AvroValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Array
class Boolean
class Bytes
class Double
class Enum
class Fixed
class Float
class Int
class Long
class Map
object Null
class Record
class String
class Union
Show all
object AvroValue

Attributes

Companion
class
Source
AvroValue.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
AvroValue.type
trait BinaryDecoder[A]

Decodes Avro binary, written using a writer schema, to type A.

Decodes Avro binary, written using a writer schema, to type A.

Note decoders are compiled once for the writer schema using the Codec#binaryDecoder function, and can be reused as many times as required, while also supporting concurrent decodes.

Attributes

Companion
object
Source
BinaryDecoder.scala
Supertypes
class Object
trait Matchable
class Any
object BinaryDecoder

Attributes

Companion
trait
Source
BinaryDecoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait BinaryEncoder[A]

Encodes values of type A to Avro binary.

Encodes values of type A to Avro binary.

Note encoders are compiled once for the schema using the Codec#binaryEncoder functions, and can be reused as many times as needed, supporting concurrent encodes.

Attributes

Companion
object
Source
BinaryEncoder.scala
Supertypes
class Object
trait Matchable
class Any
object BinaryEncoder

Attributes

Companion
trait
Source
BinaryEncoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class Codec[A]

Provides a schema, along with encoders and decoders for a given type.

Provides a schema, along with encoders and decoders for a given type.

Note encoders and decoders are compiled when requested, so make sure to request them once and reuse them as many times as required.

Attributes

Companion
object
Source
Codec.scala
Supertypes
class Object
trait Matchable
class Any
object Codec

Attributes

Companion
class
Source
Codec.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Codec.type
trait Decoder[A]

Decodes Avro values, written using a writer schema, to type A.

Decodes Avro values, written using a writer schema, to type A.

Note decoders are compiled once for the writer schema using the Codec#decoder function, and can be reused as many times as required, while also supporting concurrent decodes.

Attributes

Companion
object
Source
Decoder.scala
Supertypes
class Object
trait Matchable
class Any
object Decoder

Attributes

Companion
trait
Source
Decoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Decoder.type
trait Encoder[A]

Encodes values of type A to Avro.

Encodes values of type A to Avro.

Note encoders are compiled once for the schema using the Codec#encoder function, and can be reused as many times as needed, supporting concurrent encodes.

Attributes

Companion
object
Source
Encoder.scala
Supertypes
class Object
trait Matchable
class Any
object Encoder

Attributes

Companion
trait
Source
Encoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Encoder.type
trait JsonDecoder[A]

Decodes Avro Json, written using a writer schema, to type A.

Decodes Avro Json, written using a writer schema, to type A.

Note decoders are compiled once for the writer schema using the Codec#jsonDecoder function, and can be reused as many times as required, while also supporting concurrent decodes.

Attributes

Companion
object
Source
JsonDecoder.scala
Supertypes
class Object
trait Matchable
class Any
object JsonDecoder

Attributes

Companion
trait
Source
JsonDecoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait JsonEncoder[A]

Encodes values of type A to Avro Json.

Encodes values of type A to Avro Json.

Note encoders are compiled once for the schema using the Codec#jsonEncoder function, and can be reused as many times as needed, supporting concurrent encodes.

Attributes

Companion
object
Source
JsonEncoder.scala
Supertypes
class Object
trait Matchable
class Any
object JsonEncoder

Attributes

Companion
trait
Source
JsonEncoder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class LogicalType

Logical type annotating an underlying Avro type.

Logical type annotating an underlying Avro type.

Attributes

Companion
object
Source
LogicalType.scala
Supertypes
class Object
trait Matchable
class Any
object LogicalType

Attributes

Companion
class
Source
LogicalType.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class Prism[S, A]

Optic used for selecting a part of a coproduct type.

Optic used for selecting a part of a coproduct type.

Attributes

Companion
object
Source
Prism.scala
Supertypes
class Object
trait Matchable
class Any
object Prism

Attributes

Companion
class
Source
Prism.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Prism.type
sealed abstract class Schema

Immutable Avro schema.

Immutable Avro schema. Not validated, so not necessarily a valid Avro schema.

Attributes

Companion
object
Source
Schema.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Array
class Boolean
object Boolean
class Bytes
object Bytes
class Double
object Double
class Float
object Float
class Int
object Int
class Long
object Long
class Map
class Named
class Enum
class Fixed
class Record
class Null
object Null
class Ref
class String
object String
class Union
Show all
object Schema

Attributes

Companion
class
Source
Schema.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Schema.type