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

Method available

datafusion/execution/src/memory_pool/arrow.rs:68–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

66 }
67
68 fn available(&self) -> isize {
69 // The pool may be overfilled, so this method might return a negative value.
70 (self.capacity() as i128 - self.used() as i128)
71 .try_into()
72 .unwrap_or(isize::MIN)
73 }
74
75 fn used(&self) -> usize {
76 self.inner.reserved()

Callers

nothing calls this directly

Calls 2

capacityMethod · 0.45
usedMethod · 0.45

Tested by

no test coverage detected