Skip to main content

Module decoder

Module decoder 

Source

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ยง

OffsetSizeBytes ๐Ÿ”’
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_one field in the corresponding header byte.
VariantBasicType
The basic type of a Variant value, encoded in the first two bits of the header byte.
VariantPrimitiveType
The type of VariantBasicType::Primitive, for a primitive Variant value.

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