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

Method take

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

Splits off all the bytes from this [`MemoryReservation`] into a new [`MemoryReservation`] with the same [`MemoryConsumer`]

(&mut self)

Source from the content-addressed store, hash-verified

509 /// Splits off all the bytes from this [`MemoryReservation`] into
510 /// a new [`MemoryReservation`] with the same [`MemoryConsumer`]
511 pub fn take(&mut self) -> MemoryReservation {
512 self.split(self.size.load(atomic::Ordering::Relaxed))
513 }
514}
515
516impl Drop for MemoryReservation {

Callers 15

random_stringFunction · 0.45
dropMethod · 0.45
evaluateMethod · 0.45
evaluateMethod · 0.45
catalogFunction · 0.45
reorder_named_argumentsFunction · 0.45
nullableMethod · 0.45
add_var_providerMethod · 0.45
to_json_valueMethod · 0.45
fmtMethod · 0.45
decMethod · 0.45

Calls 2

splitMethod · 0.45
loadMethod · 0.45

Tested by 10

get_optsMethod · 0.36
topk_valuesMethod · 0.36
get_random_stringFunction · 0.36
generate_random_stringFunction · 0.36
generate_string_arrayFunction · 0.36
executeMethod · 0.36
try_fromMethod · 0.36
make_dict_batchesFunction · 0.36
test_takeFunction · 0.36