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

Method reserve

datafusion/execution/src/memory_pool/arrow.rs:60–66  ·  view source on GitHub ↗
(&self, size: usize)

Source from the content-addressed store, hash-verified

58
59impl arrow_buffer::MemoryPool for ArrowMemoryPool {
60 fn reserve(&self, size: usize) -> Box<dyn arrow_buffer::MemoryReservation> {
61 let consumer = self.consumer.clone_with_new_id();
62 let reservation = consumer.register(&self.inner);
63 reservation.grow(size);
64
65 Box::new(reservation)
66 }
67
68 fn available(&self) -> isize {
69 // The pool may be overfilled, so this method might return a negative value.

Callers 15

generic_set_loopFunction · 0.80
general_array_distinctFunction · 0.80
deduplicateMethod · 0.80
find_or_insertMethod · 0.80
unhex_arrayFunction · 0.80
hex_encode_bytesFunction · 0.80
append_valueMethod · 0.80
ensure_long_capacityMethod · 0.80
initcap_stringFunction · 0.80

Calls 4

newFunction · 0.85
clone_with_new_idMethod · 0.80
registerMethod · 0.45
growMethod · 0.45

Tested by

no test coverage detected