MCPcopy Create free account
hub / github.com/apache/datafusion / new_empty

Method new_empty

datafusion/execution/src/memory_pool/mod.rs:502–507  ·  view source on GitHub ↗

Returns a new empty [`MemoryReservation`] with the same [`MemoryConsumer`]

(&self)

Source from the content-addressed store, hash-verified

500
501 /// Returns a new empty [`MemoryReservation`] with the same [`MemoryConsumer`]
502 pub fn new_empty(&self) -> Self {
503 Self {
504 size: atomic::AtomicUsize::new(0),
505 registration: Arc::clone(&self.registration),
506 }
507 }
508
509 /// Splits off all the bytes from this [`MemoryReservation`] into
510 /// a new [`MemoryReservation`] with the same [`MemoryConsumer`]

Callers 1

test_new_emptyFunction · 0.45

Calls 1

newFunction · 0.85

Tested by 1

test_new_emptyFunction · 0.36