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
FairSpillPool in datafusion::execution::memory_pool - Rust
[go: Go Back, main page]

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

A MemoryPool that prevents spillable reservations from using more than an even fraction of the available memory sans any unspillable reservations (i.e. (pool_size - unspillable_memory) / num_spillable_reservations)

┌───────────────────────z──────────────────────z───────────────┐ │ z z │ │ z z │ │ Spillable z Unspillable z Free │ │ Memory z Memory z Memory │ │ z z │ │ z z │ └───────────────────────z──────────────────────z───────────────┘

Unspillable memory is allocated in a first-come, first-serve fashion

Implementations§

Allocate up to limit bytes

Trait Implementations§

Formats the value using the given formatter. Read more
Registers a new MemoryConsumer Read more
Records the destruction of a MemoryReservation with MemoryConsumer Read more
Infallibly grow the provided reservation by additional bytes Read more
Infallibly shrink the provided reservation by shrink bytes
Attempt to grow the provided reservation by additional bytes Read more
Return the total amount of memory reserved

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.

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.