Struct datafusion::execution::runtime_env::RuntimeEnv
source · [−]pub struct RuntimeEnv {
pub batch_size: usize,
pub memory_manager: Arc<MemoryManager>,
pub disk_manager: Arc<DiskManager>,
}
Expand description
Execution runtime environment. This structure is passed to the physical plans when they are run.
Fields
batch_size: usize
Default batch size while creating new batches
memory_manager: Arc<MemoryManager>
Runtime memory management
disk_manager: Arc<DiskManager>
Manage temporary files during query execution
Implementations
sourceimpl RuntimeEnv
impl RuntimeEnv
sourcepub fn new(config: RuntimeConfig) -> Result<Self>
pub fn new(config: RuntimeConfig) -> Result<Self>
Create env based on configuration
sourcepub fn batch_size(&self) -> usize
pub fn batch_size(&self) -> usize
Get execution batch size based on config
sourcepub fn register_requester(&self, id: &MemoryConsumerId)
pub fn register_requester(&self, id: &MemoryConsumerId)
Register the consumer to get it tracked
sourcepub fn drop_consumer(&self, id: &MemoryConsumerId, mem_used: usize)
pub fn drop_consumer(&self, id: &MemoryConsumerId, mem_used: usize)
Drop the consumer from get tracked, reclaim memory
sourcepub fn grow_tracker_usage(&self, delta: usize)
pub fn grow_tracker_usage(&self, delta: usize)
Grow tracker memory of delta
sourcepub fn shrink_tracker_usage(&self, delta: usize)
pub fn shrink_tracker_usage(&self, delta: usize)
Shrink tracker memory of delta
Trait Implementations
sourceimpl Clone for RuntimeEnv
impl Clone for RuntimeEnv
sourcefn clone(&self) -> RuntimeEnv
fn clone(&self) -> RuntimeEnv
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RuntimeEnv
impl Debug for RuntimeEnv
Auto Trait Implementations
impl !RefUnwindSafe for RuntimeEnv
impl Send for RuntimeEnv
impl Sync for RuntimeEnv
impl Unpin for RuntimeEnv
impl !UnwindSafe for RuntimeEnv
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more