MCPcopy Create free account
hub / github.com/apache/arrow / StageBlock

Function StageBlock

cpp/src/arrow/filesystem/azurefs.cc:995–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993}
994
995Status StageBlock(Blobs::BlockBlobClient* block_blob_client, const std::string& id,
996 Core::IO::MemoryBodyStream& content) {
997 try {
998 block_blob_client->StageBlock(id, content);
999 } catch (const Core::RequestFailedException& exception) {
1000 return ExceptionToStatus(
1001 exception, "StageBlock failed for '", block_blob_client->GetUrl(),
1002 "' new_block_id: '", id,
1003 "'. Staging new blocks is fundamental to streaming writes to blob storage.");
1004 }
1005
1006 return Status::OK();
1007}
1008
1009// Usually if the first page is empty it means there are no results. This was assumed in
1010// several places in AzureFilesystem. The Azure docs do not guarantee this and we have

Callers 1

AppendBlockMethod · 0.85

Calls 2

ExceptionToStatusFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected