object BooleanCodec extends InstanceForTypes[Boolean, Boolean] with Product with Serializable
- Alphabetic
- By Inheritance
- BooleanCodec
- Serializable
- Serializable
- Product
- Equals
- InstanceForTypes
- WithValidSchema
- Codec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
type
Repr = AvroType
- Definition Classes
- Codec
- Annotations
- @deprecated
- Deprecated
(Since version 1.8.0) Use AvroType
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( ... ) @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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
AandB. -
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
AandB.Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
AandB.Similar to Codec#imap, except the mapping from
AtoBmight 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
AandB.Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
AandB.Similar to Codec#imap, except the mapping from
AtoBmight 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
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()