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

Method IsFull

be/src/runtime/spillable-row-batch-queue.cc:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123bool SpillableRowBatchQueue::IsFull() const {
124 // The queue is considered full if the number of unpinned bytes is greater than the
125 // max number of unpinned bytes. The queue can only be full after the stream has been
126 // unpinned. The number of unpinned bytes in the stream may exceed the imposed limit
127 // because the entire stream is unpinned at once, without checking against the
128 // max_unpinned_bytes_ limit.
129 DCHECK(!closed_);
130 return batch_queue_->bytes_unpinned() >= max_unpinned_bytes_;
131}
132
133bool SpillableRowBatchQueue::IsEmpty() const {
134 // The batch_queue_ tracks how many rows have been added to the stream (regardless of

Callers

nothing calls this directly

Calls 1

bytes_unpinnedMethod · 0.80

Tested by

no test coverage detected