Skip to main content

Module encoder

Module encoder 

Source

Re-exportsยง

use std::io::Write; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use crate::StructMode; ๐Ÿ”’
use arrow_array::cast::AsArray; ๐Ÿ”’
use arrow_buffer::ArrowNativeType; ๐Ÿ”’
use arrow_buffer::NullBuffer; ๐Ÿ”’
use arrow_buffer::OffsetBuffer; ๐Ÿ”’
use arrow_buffer::ScalarBuffer; ๐Ÿ”’
use arrow_cast::display::ArrayFormatter; ๐Ÿ”’
use arrow_cast::display::FormatOptions; ๐Ÿ”’
use arrow_schema::ArrowError; ๐Ÿ”’
use arrow_schema::DataType; ๐Ÿ”’
use arrow_schema::FieldRef; ๐Ÿ”’
use half::f16; ๐Ÿ”’
use lexical_core::FormattedSize; ๐Ÿ”’
use serde_core::Serializer; ๐Ÿ”’
use arrow_array::types::*; ๐Ÿ”’
use arrow_array::*; ๐Ÿ”’

Macrosยง

float_encode ๐Ÿ”’
integer_encode ๐Ÿ”’

Structsยง

BinaryEncoder ๐Ÿ”’
New-type wrapper for encoding the binary types in arrow: Binary, LargeBinary and FixedSizeBinary as hex strings in JSON.
BinaryViewEncoder ๐Ÿ”’
BooleanEncoder ๐Ÿ”’
DictionaryEncoder ๐Ÿ”’
EncoderOptions
Configuration options for the JSON encoder.
FieldEncoder ๐Ÿ”’
JsonArrayFormatter ๐Ÿ”’
A newtype wrapper around [ArrayFormatter] to keep our usage of it private and not implement Encoder for the public type
ListLikeEncoder ๐Ÿ”’
MapEncoder ๐Ÿ”’
NullEncoder ๐Ÿ”’
NullableEncoder
An encoder + a null buffer. This is packaged together into a wrapper struct to minimize dynamic dispatch for null checks.
PrimitiveEncoder ๐Ÿ”’
RawArrayFormatter ๐Ÿ”’
A newtype wrapper around JsonArrayFormatter that skips surrounding the value with "
RunEndEncodedEncoder ๐Ÿ”’
StringEncoder ๐Ÿ”’
StringViewEncoder ๐Ÿ”’
StructArrayEncoder ๐Ÿ”’

Traitsยง

Encoder
A trait to format array values as JSON values
EncoderFactory
Creates custom encoders for specific data types when writing JSON data.
PrimitiveEncode ๐Ÿ”’

Functionsยง

encode_binary ๐Ÿ”’
encode_string ๐Ÿ”’
make_encoder
Creates an encoder for the given array and field.