编码器

枚举 Encoder 

源代码
enum Encoder<'a> {
Show 45 variants Boolean(BooleanEncoder<'a>), Int(IntEncoder<'a, Int32Type>), Long(LongEncoder<'a, Int64Type>), TimestampMicros(LongEncoder<'a, TimestampMicrosecondType>), TimestampMillis(LongEncoder<'a, TimestampMillisecondType>), TimestampNanos(LongEncoder<'a, TimestampNanosecondType>), TimestampSecsToMillis(TimestampSecondsToMillisEncoder<'a>), Date32(IntEncoder<'a, Date32Type>), Time32SecsToMillis(Time32SecondsToMillisEncoder<'a>), Time32Millis(IntEncoder<'a, Time32MillisecondType>), Time64Micros(LongEncoder<'a, Time64MicrosecondType>), DurationSeconds(LongEncoder<'a, DurationSecondType>), DurationMillis(LongEncoder<'a, DurationMillisecondType>), DurationMicros(LongEncoder<'a, DurationMicrosecondType>), DurationNanos(LongEncoder<'a, DurationNanosecondType>), Float32(F32Encoder<'a>), Float64(F64Encoder<'a>), Binary(BinaryEncoder<'a, i32>), LargeBinary(BinaryEncoder<'a, i64>), Utf8(Utf8GenericEncoder<'a, i32>), Utf8Large(Utf8GenericEncoder<'a, i64>), Utf8View(Utf8ViewEncoder<'a>), BinaryView(BinaryViewEncoder<'a>), List(Box<ListEncoder<'a, i32>>), LargeList(Box<ListEncoder<'a, i64>>), ListView(Box<ListViewEncoder<'a, i32>>), LargeListView(Box<ListViewEncoder<'a, i64>>), FixedSizeList(Box<FixedSizeListEncoder<'a>>), Struct(Box<StructEncoder<'a>>), Fixed(FixedEncoder<'a>), Uuid(UuidEncoder<'a>), IntervalMonthDayNano(DurationEncoder<'a, IntervalMonthDayNanoType>), IntervalYearMonth(DurationEncoder<'a, IntervalYearMonthType>), IntervalDayTime(DurationEncoder<'a, IntervalDayTimeType>), Decimal32(DecimalEncoder<'a, 4, Decimal32Array>), Decimal64(DecimalEncoder<'a, 8, Decimal64Array>), Decimal128(DecimalEncoder<'a, 16, Decimal128Array>), Decimal256(DecimalEncoder<'a, 32, Decimal256Array>), Enum(EnumEncoder<'a>), Map(Box<MapEncoder<'a>>), Union(Box<UnionEncoder<'a>>), RunEncoded16(Box<RunEncodedEncoder<'a, Int16Type>>), RunEncoded32(Box<RunEncodedEncoder<'a, Int32Type>>), RunEncoded64(Box<RunEncodedEncoder<'a, Int64Type>>), Null,
}

变体§

§

Boolean(BooleanEncoder<'a>)

§

Int(IntEncoder<'a, Int32Type>)

§

Long(LongEncoder<'a, Int64Type>)

§

TimestampMicros(LongEncoder<'a, TimestampMicrosecondType>)

§

TimestampMillis(LongEncoder<'a, TimestampMillisecondType>)

§

TimestampNanos(LongEncoder<'a, TimestampNanosecondType>)

§

TimestampSecsToMillis(TimestampSecondsToMillisEncoder<'a>)

§

Date32(IntEncoder<'a, Date32Type>)

§

Time32SecsToMillis(Time32SecondsToMillisEncoder<'a>)

§

Time32Millis(IntEncoder<'a, Time32MillisecondType>)

§

Time64Micros(LongEncoder<'a, Time64MicrosecondType>)

§

DurationSeconds(LongEncoder<'a, DurationSecondType>)

§

DurationMillis(LongEncoder<'a, DurationMillisecondType>)

§

DurationMicros(LongEncoder<'a, DurationMicrosecondType>)

§

DurationNanos(LongEncoder<'a, DurationNanosecondType>)

§

Float32(F32Encoder<'a>)

§

Float64(F64Encoder<'a>)

§

Binary(BinaryEncoder<'a, i32>)

§

LargeBinary(BinaryEncoder<'a, i64>)

§

Utf8(Utf8GenericEncoder<'a, i32>)

§

Utf8Large(Utf8GenericEncoder<'a, i64>)

§

Utf8View(Utf8ViewEncoder<'a>)

§

BinaryView(BinaryViewEncoder<'a>)

§

List(Box<ListEncoder<'a, i32>>)

§

LargeList(Box<ListEncoder<'a, i64>>)

§

ListView(Box<ListViewEncoder<'a, i32>>)

§

LargeListView(Box<ListViewEncoder<'a, i64>>)

§

FixedSizeList(Box<FixedSizeListEncoder<'a>>)

§

Struct(Box<StructEncoder<'a>>)

§

Fixed(FixedEncoder<'a>)

Avro fixed 编码器(原始字节,无长度)

§

Uuid(UuidEncoder<'a>)

Avro uuid 逻辑类型编码器(带有 RFC-4122 连字符文本的字符串)

§

IntervalMonthDayNano(DurationEncoder<'a, IntervalMonthDayNanoType>)

Avro duration 逻辑类型 (Arrow Interval(MonthDayNano)) 编码器

§

IntervalYearMonth(DurationEncoder<'a, IntervalYearMonthType>)

Avro duration 逻辑类型 (Arrow Interval(YearMonth)) 编码器

§

IntervalDayTime(DurationEncoder<'a, IntervalDayTimeType>)

Avro duration 逻辑类型 (Arrow Interval(DayTime)) 编码器

§

Decimal32(DecimalEncoder<'a, 4, Decimal32Array>)

§

Decimal64(DecimalEncoder<'a, 8, Decimal64Array>)

§

Decimal128(DecimalEncoder<'a, 16, Decimal128Array>)

§

Decimal256(DecimalEncoder<'a, 32, Decimal256Array>)

§

Enum(EnumEncoder<'a>)

Avro enum 编码器:将键 (int) 作为枚举索引写入。

§

Map(Box<MapEncoder<'a>>)

§

Union(Box<UnionEncoder<'a>>)

§

RunEncoded16(Box<RunEncodedEncoder<'a, Int16Type>>)

具有特定行程结束索引宽度的行程结束编码值

§

RunEncoded32(Box<RunEncodedEncoder<'a, Int32Type>>)

§

RunEncoded64(Box<RunEncodedEncoder<'a, Int64Type>>)

§

Null

实现§

源码§

impl<'a> Encoder<'a>

源代码

fn encode<W: Write + ?Sized>( &mut self, out: &mut W, idx: usize, ) -> Result<(), ArrowError>

idx 处的值进行编码。

自动 Trait 实现§

§

impl<'a> Freeze for Encoder<'a>

§

impl<'a> !RefUnwindSafe for Encoder<'a>

§

impl<'a> Send for Encoder<'a>

§

impl<'a> Sync for Encoder<'a>

§

impl<'a> Unpin for Encoder<'a>

§

impl<'a> !UnwindSafe for Encoder<'a>

通用实现§

§

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> 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, 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