Skip to content

Casting Library (13)

Casting Numbers as Numbers of a Different Type (6)

Short Description Function
Signed integers with wrap-around cast.signed
Unsigned integers with wrap-around cast.unsigned
32-bit integers cast.int
64-bit integers cast.long
Single-precision floating point cast.float
Double-precision floating point cast.double

Fanning Out Variables to Arrays of Various Types (5)

Short Description Function
Fan a variable out to an array of booleans cast.fanoutBoolean
Fan a variable out to an array of ints cast.fanoutInt
Fan a variable out to an array of longs cast.fanoutLong
Fan a variable out to an array of floats cast.fanoutFloat
Fan a variable out to an array of doubles cast.fanoutDouble

Serializing Arbitrary Objects (2)

Short Description Function
Serialize an arbitrary object as Avro bytes cast.avro
Serialize an arbitrary object as a JSON string cast.json