MCPcopy Create free account
hub / github.com/apache/impala / BytesPinned

Method BytesPinned

be/src/runtime/buffered-tuple-stream.h:400–405  ·  view source on GitHub ↗

Returns the number of bytes currently pinned in memory by the stream. If ignore_current is true, the write_page_ memory is not included.

Source from the content-addressed store, hash-verified

398 /// Returns the number of bytes currently pinned in memory by the stream.
399 /// If ignore_current is true, the write_page_ memory is not included.
400 int64_t BytesPinned(bool ignore_current) const {
401 if (ignore_current && write_page_ != nullptr && write_page_->is_pinned()) {
402 return bytes_pinned_ - write_page_->len();
403 }
404 return bytes_pinned_;
405 }
406
407 /// Returns the number of bytes currently unpinned by the stream.
408 int64_t bytes_unpinned() const {

Callers 12

SpillPartitionMethod · 0.80
CleanUpHashPartitionsMethod · 0.80
DebugStringMethod · 0.80
BeginSpilledProbeMethod · 0.80
NodeDebugStringMethod · 0.80
NextPartitionMethod · 0.80
BuildSpilledPartitionMethod · 0.80
SpillPartitionMethod · 0.80
TestUnpinPinMethod · 0.80
VerifyStreamStateMethod · 0.80

Calls 2

is_pinnedMethod · 0.45
lenMethod · 0.45

Tested by 2

TestUnpinPinMethod · 0.64
VerifyStreamStateMethod · 0.64