Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
BatchPartitioner in datafusion::physical_plan::repartition - Rust
[go: Go Back, main page]

pub struct BatchPartitioner { /* private fields */ }
Expand description

A utility that can be used to partition batches based on Partitioning

Implementations§

Create a new BatchPartitioner with the provided Partitioning

The time spent repartitioning will be recorded to timer

Partition the provided [RecordBatch] into one or more partitioned [RecordBatch] based on the Partitioning specified on construction

f will be called for each partitioned [RecordBatch] with the corresponding partition index. Any error returned by f will be immediately returned by this function without attempting to publish further [RecordBatch]

The time spent repartitioning, not including time spent in f will be recorded to the metrics::Time provided on construction

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more