Re-exportsยง
use crate::ShortString;๐use crate::utils::array_from_slice;๐use crate::utils::overflow_error;๐use crate::utils::slice_from_slice_at_offset;๐use crate::utils::string_from_slice;๐use arrow_schema::ArrowError;๐use chrono::DateTime;๐use chrono::Duration;๐use chrono::NaiveDate;๐use chrono::NaiveDateTime;๐use chrono::NaiveTime;๐use chrono::Utc;๐use uuid::Uuid;๐
Enumsยง
- Offset
Size ๐Bytes - Used to unpack offset array entries such as metadata dictionary offsets or object/array value
offsets. Also used to unpack object field ids. These are always derived from a two-bit
XXX_size_minus_onefield in the corresponding header byte. - Variant
Basic Type - The basic type of a
Variantvalue, encoded in the first two bits of the header byte. - Variant
Primitive Type - The type of
VariantBasicType::Primitive, for a primitiveVariantvalue.
Functionsยง
- decode_
binary ๐ - Decodes a Binary from the value section of a variant.
- decode_
date ๐ - Decodes a Date from the value section of a variant.
- decode_
decimal4 ๐ - Decodes a Decimal4 from the value section of a variant.
- decode_
decimal8 ๐ - Decodes a Decimal8 from the value section of a variant.
- decode_
decimal16 ๐ - Decodes a Decimal16 from the value section of a variant.
- decode_
double ๐ - Decodes a Double from the value section of a variant.
- decode_
float ๐ - Decodes a Float from the value section of a variant.
- decode_
int8 ๐ - Decodes an Int8 from the value section of a variant.
- decode_
int16 ๐ - Decodes an Int16 from the value section of a variant.
- decode_
int32 ๐ - Decodes an Int32 from the value section of a variant.
- decode_
int64 ๐ - Decodes an Int64 from the value section of a variant.
- decode_
long_ ๐string - Decodes a long string from the value section of a variant.
- decode_
short_ ๐string - Decodes a short string from the value section of a variant.
- decode_
time_ ๐ntz - decode_
timestamp_ ๐micros - Decodes a TimestampMicros from the value section of a variant.
- decode_
timestamp_ ๐nanos - Decodes a TimestampNanos from the value section of a variant.
- decode_
timestampntz_ ๐micros - Decodes a TimestampNtzMicros from the value section of a variant.
- decode_
timestampntz_ ๐nanos - Decodes a TimestampNtzNanos from the value section of a variant.
- decode_
uuid ๐ - Decodes a UUID from the value section of a variant.
- get_
basic_ ๐type - Extracts the basic type from a header byte
- get_
primitive_ ๐type - Extract the primitive type from a Variant value-metadata byte
- map_
bytes_ ๐to_ offsets - Converts a byte buffer to offset values based on the specific offset size