PageBlobURL Class

Definition

Represents a URL to a page blob. It may be obtained by direct construction or via the create method on a ContainerURL object. This class does not hold any state about a particular blob but is instead a convenient way of sending off appropriate requests to the resource on the service. Please refer to the Azure Docs for more information.

public class PageBlobURL extends BlobURL
Inheritance
java.lang.Object
PageBlobURL

Inherited Members

Constructors

PageBlobURL(URL url, HttpPipeline pipeline)

Creates aPageBlobURL  object pointing to the account specified by the URL and using the provided pipeline to make HTTP requests.

Fields

MAX_PUT_PAGES_BYTES

Indicates the maximum number of bytes that may be sent in a call to putPage.

PAGE_BYTES

Indicates the number of bytes in a page.

Methods

clearPages(PageRange pageRange)

Frees the specified pages from the page blob. For more information, see the Azure Docs.

clearPages(PageRange pageRange, PageBlobAccessConditions pageBlobAccessConditions, Context context)

Frees the specified pages from the page blob. For more information, see the Azure Docs.

copyIncremental(URL source, String snapshot)

Begins an operation to start an incremental copy from one page blob's snapshot to this page blob. The snapshot is copied such that only the differential changes between the previously copied snapshot are transferred to the destination. The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual. For more information, see the Azure Docs here and here.

copyIncremental(URL source, String snapshot, ModifiedAccessConditions modifiedAccessConditions, Context context)

Begins an operation to start an incremental copy from one page blob's snapshot to this page blob. The snapshot is copied such that only the differential changes between the previously copied snapshot are transferred to the destination. The copied snapshots are complete copies of the original snapshot and can be read or copied from as usual. For more information, see the Azure Docs here and here.

create(long size)

Creates a page blob of the specified length. Call PutPage to upload data data to a page blob. For more information, see the Azure Docs.

create(long size, Long sequenceNumber, BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions, Context context)

Creates a page blob of the specified length. Call PutPage to upload data data to a page blob. For more information, see the Azure Docs.

getPageRanges(BlobRange blobRange)

Returns the list of valid page ranges for a page blob or snapshot of a page blob. For more information, see the Azure Docs.

getPageRanges(BlobRange blobRange, BlobAccessConditions accessConditions, Context context)

Returns the list of valid page ranges for a page blob or snapshot of a page blob. For more information, see the Azure Docs.

getPageRangesDiff(BlobRange blobRange, String prevSnapshot)

Gets the collection of page ranges that differ between a specified snapshot and this page blob. For more information, see the Azure Docs.

getPageRangesDiff(BlobRange blobRange, String prevSnapshot, BlobAccessConditions accessConditions, Context context)

Gets the collection of page ranges that differ between a specified snapshot and this page blob. For more information, see the Azure Docs.

resize(long size)

Resizes the page blob to the specified size (which must be a multiple of 512). For more information, see the Azure Docs.

resize(long size, BlobAccessConditions accessConditions, Context context)

Resizes the page blob to the specified size (which must be a multiple of 512). For more information, see the Azure Docs.

updateSequenceNumber(SequenceNumberActionType action, Long sequenceNumber)

Sets the page blob's sequence number. For more information, see the Azure Docs.

updateSequenceNumber(SequenceNumberActionType action, Long sequenceNumber, BlobAccessConditions accessConditions, Context context)

Sets the page blob's sequence number. For more information, see the Azure Docs.

uploadPages(PageRange pageRange, Flowable<ByteBuffer> body)

Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512. For more information, see the Azure Docs.

Note that the data passed must be replayable if retries are enabled (the default). In other words, the Flowable  must produce the same data each time it is subscribed to.

uploadPages(PageRange pageRange, Flowable<ByteBuffer> body, PageBlobAccessConditions pageBlobAccessConditions, Context context)

Writes 1 or more pages to the page blob. The start and end offsets must be a multiple of 512. For more information, see the Azure Docs.

Note that the data passed must be replayable if retries are enabled (the default). In other words, the Flowable  must produce the same data each time it is subscribed to.

uploadPagesFromURL(PageRange range, URL sourceURL, Long sourceOffset)

Writes 1 or more pages from the source page blob to this page blob. The start and end offsets must be a multiple of 512. For more information, see the Azure Docs.

uploadPagesFromURL(PageRange range, URL sourceURL, Long sourceOffset, byte[] sourceContentMD5, PageBlobAccessConditions destAccessConditions, SourceModifiedAccessConditions sourceAccessConditions, Context context)

Writes 1 or more pages from the source page blob to this page blob. The start and end offsets must be a multiple of 512. For more information, see the Azure Docs.

withPipeline(HttpPipeline pipeline)

Creates a new PageBlobURL with the given pipeline.

withSnapshot(String snapshot)

Creates a new PageBlobURL with the given snapshot.

Applies to