| 121 | } |
| 122 | |
| 123 | bool 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 | |
| 133 | bool SpillableRowBatchQueue::IsEmpty() const { |
| 134 | // The batch_queue_ tracks how many rows have been added to the stream (regardless of |
nothing calls this directly
no test coverage detected