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

Method AddLargeRowCustomEnd

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

Source from the content-addressed store, hash-verified

1020}
1021
1022void BufferedTupleStream::AddLargeRowCustomEnd(int64_t size) noexcept {
1023 DCHECK_GT(size, default_page_len_);
1024 // Immediately unpin the large write page so that we're not using up extra reservation
1025 // and so we don't append another row to the page.
1026 ResetWritePage();
1027 // Save some of the reservation we freed up so we can create the next write page when
1028 // needed.
1029 if (NeedWriteReservation()) {
1030 buffer_pool_client_->SaveReservation(&write_page_reservation_, default_page_len_);
1031 }
1032 // The stream should be in a consistent state once the row is added.
1033 CHECK_CONSISTENCY_FAST(read_it_);
1034}
1035
1036bool BufferedTupleStream::AddRow(TupleRow* row, Status* status) noexcept {
1037 DCHECK(!closed_);

Callers

nothing calls this directly

Calls 1

SaveReservationMethod · 0.80

Tested by

no test coverage detected