FieldPlan

枚举 字段计划 

源代码
enum FieldPlan {
    Scalar,
    Struct {
        bindings: Vec<FieldBinding>,
    },
    List {
        items_nullability: Option<Nullability>,
        item_plan: Box<FieldPlan>,
    },
    Decimal {
        size: Option<usize>,
    },
    Uuid,
    Map {
        values_nullability: Option<Nullability>,
        value_plan: Box<FieldPlan>,
    },
    Enum {
        symbols: Arc<[String]>,
    },
    Union {
        bindings: Vec<FieldBinding>,
    },
    RunEndEncoded {
        values_nullability: Option<Nullability>,
        value_plan: Box<FieldPlan>,
    },
}
展开描述

字段的逐站点编码器计划。这反映了 Avro 结构,因此嵌套的可选分支顺序可以完全按照模式声明的方式执行。

变体§

§

Scalar

非嵌套标量/逻辑类型

§

结构体

具有 Avro 排序子级的记录/结构

字段

§bindings: Vec<FieldBinding>
§

列表

具有项目站点可空性和嵌套计划的数组

字段

§items_nullability: Option<Nullability>
§item_plan: Box<FieldPlan>
§

Decimal

Avro 十进制逻辑类型(字节或固定)。size=None => 字节(十进制),Some(n) => 固定(n)

字段

§

Uuid

Avro UUID 逻辑类型(固定)

§

Map

具有值站点可空性和嵌套计划的 Avro 映射

字段

§values_nullability: Option<Nullability>
§value_plan: Box<FieldPlan>
§

枚举

Avro 枚举;映射到 Arrow Dictionary<Int32, Utf8>,字典值与 Avro 枚举 symbols 完全相等且顺序相同。

字段

§symbols: Arc<[String]>
§

联合

Avro 联合,映射到 Arrow Union。

字段

§bindings: Vec<FieldBinding>
§

行程编码

Avro RunEndEncoded 站点。值按逻辑行编码,通过将行索引映射到其包含的运行,并使用 value_plan 发出该运行的值。

字段

§values_nullability: Option<Nullability>
§value_plan: Box<FieldPlan>

实现§

来源§

impl FieldPlan

源代码

fn build( avro_dt: &AvroDataType, arrow_field: &Field, ) -> Result<Self, ArrowError>

Trait 实现§

来源§

impl Clone for FieldPlan

来源§

fn clone(&self) -> FieldPlan

返回值的副本。 阅读更多
1.0.0 · §

fn clone_from(&mut self, source: &Self)

执行从 source 的复制赋值。 阅读更多
来源§

impl Debug for FieldPlan

来源§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

使用给定的格式化程序格式化值。 阅读更多

自动 Trait 实现§

通用实现§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

获取 selfTypeId阅读更多
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

从拥有的值进行不可变借用。 阅读更多
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

从拥有的值进行可变借用。 阅读更多
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬这是一个仅限 nightly 的实验性 API。(clone_to_uninit
执行从 selfdest 的复制赋值。 阅读更多
§

impl<T> From<T> for T

§

fn from(t: T) -> T

返回未更改的参数。

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

调用 U::from(self)

也就是说,此转换是 From<T> for U 的实现选择执行的任何操作。

§

impl<T> Same for T

§

type Output = T

应该总是 Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

获取所有权后的结果类型。
§

fn to_owned(&self) -> T

从借用的数据创建拥有的数据,通常通过克隆。 阅读更多
§

fn clone_into(&self, target: &mut T)

使用借用的数据替换拥有的数据,通常通过克隆。 阅读更多
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

转换错误时返回的类型。
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行转换。
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

转换错误时返回的类型。
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行转换。
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,