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

Method PrepareForRead

be/src/runtime/buffered-tuple-stream.cc:616–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616Status BufferedTupleStream::PrepareForRead(bool attach_on_read, bool* got_reservation) {
617 CHECK_CONSISTENCY_FULL(read_it_);
618 InvalidateWriteIterator();
619 InvalidateReadIterator();
620 // If already pinned, no additional pin is needed (see ExpectedPinCount()).
621 *got_reservation = pinned_ || pages_.empty()
622 || buffer_pool_client_->IncreaseReservationToFit(default_page_len_);
623 if (!*got_reservation) return Status::OK();
624 return PrepareForReadInternal(attach_on_read, &read_it_);
625}
626
627Status BufferedTupleStream::PrepareForPinnedRead(ReadIterator* iter) {
628 DCHECK(pinned_) << "Can only read pinned stream with external iterator";

Callers 6

TestValuesMethod · 0.45
TestUnpinPinMethod · 0.45
TestAttachMemoryMethod · 0.45
TEST_FFunction · 0.45
TestShortDebugStringMethod · 0.45

Calls 3

OKFunction · 0.85
emptyMethod · 0.45

Tested by 6

TestValuesMethod · 0.36
TestUnpinPinMethod · 0.36
TestAttachMemoryMethod · 0.36
TEST_FFunction · 0.36
TestShortDebugStringMethod · 0.36