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

Method AddBuffer

be/src/runtime/row-batch.cc:347–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void RowBatch::AddBuffer(BufferPool::ClientHandle* client,
348 BufferPool::BufferHandle&& buffer, FlushMode flush) {
349 attached_buffer_bytes_ += buffer.len();
350 BufferInfo buffer_info;
351 buffer_info.client = client;
352 buffer_info.buffer = std::move(buffer);
353 buffers_.push_back(std::move(buffer_info));
354 if (flush == FlushMode::FLUSH_RESOURCES) MarkFlushResources();
355}
356
357void RowBatch::FreeBuffers() {
358 for (BufferInfo& buffer_info : buffers_) {

Callers 4

GetNextMethod · 0.80
FromProtobufMethod · 0.80
AttachBufferToBatchMethod · 0.80

Calls 3

moveFunction · 0.85
push_backMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected