case object BooleanCodec extends InstanceForTypes[Boolean, Boolean] with Product with Serializable
- Source
- Codec.scala
- Alphabetic
- By Inheritance
- BooleanCodec
- Serializable
- Product
- Equals
- InstanceForTypes
- WithValidSchema
- Codec
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type AvroType = Boolean
The Java type that this codec will encode to.
The Java type that this codec will encode to. The resulting value will in turn be converted to a binary or JSON-based Avro format by the underlying Avro SDK.
This type is of interest mainly because it determines what Avro type the data will ultimately be encoded to; therefore, we express it using type aliases named according to the Avro type they represent.
- Definition Classes
- WithValidSchema → Codec
Deprecated Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decode(value: Any, writerSchema: Schema): Either[AvroError, Boolean]
Attempts to decode the specified value using the provided schema.
Attempts to decode the specified value using the provided schema.
- Definition Classes
- InstanceForTypes → Codec
- def encode(value: Boolean): Either[AvroError, AvroType]
Attempts to encode the specified value using the provided schema.
Attempts to encode the specified value using the provided schema.
- Definition Classes
- InstanceForTypes → Codec
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def imap[B](f: (Boolean) => B)(g: (B) => Boolean): WithValidSchema[Boolean, B]
Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
A
andB
. - def imapError[B](f: (Boolean) => Either[AvroError, B])(g: (B) => Boolean): Aux[AvroType, B]
Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
A
andB
.Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
A
andB
.Similar to Codec#imap, except the mapping from
A
toB
might be unsuccessful.- Definition Classes
- Codec
- final def imapErrors[B](f: (Boolean) => Either[AvroError, B])(g: (B) => Either[AvroError, Boolean]): WithValidSchema[Boolean, B]
- Definition Classes
- WithValidSchema → Codec
- final def imapTry[B](f: (Boolean) => Try[B])(g: (B) => Boolean): Aux[AvroType, B]
Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
A
andB
.Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
A
andB
.Similar to Codec#imap, except the mapping from
A
toB
might be unsuccessful.- Definition Classes
- Codec
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def schema: Either[AvroError, Schema]
The schema or an error if the schema could not be generated.
The schema or an error if the schema could not be generated.
- Definition Classes
- WithValidSchema → Codec
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toString(): String
- Definition Classes
- Codec → AnyRef → Any
- val validSchema: Schema
- Definition Classes
- InstanceForTypes → WithValidSchema
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()