object LongCodec extends Codec[Long] with WithValidSchema[Long, Long] with Product with Serializable
- Alphabetic
- By Inheritance
- LongCodec
- Serializable
- Serializable
- Product
- Equals
- WithValidSchema
- Codec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
AvroType = Long
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, schema: Schema): Either[AvroError, Long]
Attempts to decode the specified value using the provided schema.
-
def
encode(a: Long): Either[AvroError, Long]
Attempts to encode the specified value using the provided schema.
-
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: (Long) ⇒ B)(g: (B) ⇒ Long): WithValidSchema[Long, B]
Returns a new Codec which uses this Codec for encoding and decoding, mapping back-and-forth between types
AandB. -
def
imapError[B](f: (Long) ⇒ Either[AvroError, B])(g: (B) ⇒ Long): 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: (Long) ⇒ Either[AvroError, B])(g: (B) ⇒ Either[AvroError, Long]): WithValidSchema[Long, B]
- Definition Classes
- WithValidSchema → Codec
-
final
def
imapTry[B](f: (Long) ⇒ Try[B])(g: (B) ⇒ Long): 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
-
def
validSchema: Schema
- Definition Classes
- LongCodec → 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()