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

Method Write

be/src/runtime/tmp-file-mgr.cc:1629–1642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1627}
1628
1629Status TmpFileGroup::Write(MemRange buffer, WriteDoneCallback cb,
1630 unique_ptr<TmpWriteHandle>* handle, const BufferPoolClientCounters* counters) {
1631 DCHECK_GE(buffer.len(), 0);
1632
1633 unique_ptr<TmpWriteHandle> tmp_handle(new TmpWriteHandle(this, move(cb)));
1634 TmpWriteHandle* tmp_handle_ptr = tmp_handle.get(); // Pass ptr by value into lambda.
1635 WriteRange::WriteDoneCallback callback = [this, tmp_handle_ptr](
1636 const Status& write_status) {
1637 WriteComplete(tmp_handle_ptr, write_status);
1638 };
1639 RETURN_IF_ERROR(tmp_handle->Write(io_ctx_.get(), buffer, callback, counters));
1640 *handle = move(tmp_handle);
1641 return Status::OK();
1642}
1643
1644Status TmpFileGroup::Read(TmpWriteHandle* handle, MemRange buffer) {
1645 RETURN_IF_ERROR(ReadAsync(handle, buffer));

Callers

nothing calls this directly

Calls 15

moveFunction · 0.85
OKFunction · 0.85
MemRangeClass · 0.85
MakeScopeExitTriggerFunction · 0.85
compression_enabledMethod · 0.80
pathMethod · 0.80
AssignDiskQueueMethod · 0.80
SetDiskFileMethod · 0.80
SetRequestContextMethod · 0.80
AsyncWriteRangeMethod · 0.80
getMethod · 0.65
resetMethod · 0.65

Tested by

no test coverage detected