[英]Order of blobs when using DownloadBlockList in Azure blob storage
I am implementing a service that is supposed to save chunks of data passed into it to Azure as BlockBlob. 我正在实现一项服务,该服务应将传递给它的数据块作为BlockBlob保存到Azure。 To be able to append my chunks as blocks to existing BlockBlob I call DownloadBlockList to get the list of those chunks that have already been added and add new one at the end before using PostBlockList.
为了能够将我的块作为块追加到现有BlockBlob中,我调用DownloadBlockList以获取已添加的那些块的列表,并在使用PostBlockList之前在末尾添加新块。
The question is - does azure .net library guarantee that the order of the list that is returned by DownloadBlockList is constant and corresponds to the order I've been adding those blocks? 问题是-azure .net库是否可以保证DownloadBlockList返回的列表的顺序是恒定的,并且与我一直添加这些块的顺序相对应?
Based on my quick tests this assumption is correct, but I couldn't find any official confirmation for that behaviour in documentation. 根据我的快速测试,此假设是正确的,但我在文档中找不到任何针对该行为的官方确认。
From Get Block List REST API Documentation
: 从
Get Block List REST API Documentation
:
The list of committed blocks is returned in the same order that they were committed by the Put Block List operation.
已提交块的列表以与“放入阻止列表”操作所提交的顺序相同的顺序返回。 No block may appear more than once in the committed block list.
在已提交的阻止列表中,任何阻止都不能出现超过一次。
Since .Net SDK is simply a wrapper around the REST API, I would say your assumption is correct. 由于.Net SDK只是REST API的包装,因此我想说您的假设是正确的。 It returns the block list that was committed.
它返回已提交的阻止列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.