public final class BlockBlobURL extends BlobURL
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 on block blobs.Modifier and Type | Field and Description |
---|---|
static int |
MAX_BLOCKS
Indicates the maximum number of blocks allowed in a block blob.
|
static int |
MAX_PUT_BLOB_BYTES
Indicates the maximum number of bytes that can be sent in a call to upload.
|
static int |
MAX_PUT_BLOCK_BYTES
Indicates the maximum number of bytes that can be sent in a call to stageBlock.
|
storageClient
Constructor and Description |
---|
BlockBlobURL(URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
BlockBlobURL object. |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<BlockBlobsCommitBlockListResponse> |
commitBlockList(List<String> base64BlockIDs,
BlobHTTPHeaders headers,
Metadata metadata,
BlobAccessConditions accessConditions)
Writes a blob by specifying the list of block IDs that are to make up the blob.
|
io.reactivex.Single<BlockBlobsGetBlockListResponse> |
getBlockList(BlockListType listType,
LeaseAccessConditions leaseAccessConditions)
Returns the list of blocks that have been uploaded as part of a block blob using the specified block list filter.
|
io.reactivex.Single<BlockBlobsStageBlockResponse> |
stageBlock(String base64BlockID,
io.reactivex.Flowable<ByteBuffer> data,
long length,
LeaseAccessConditions leaseAccessConditions)
Uploads the specified block to the block blob's "staging area" to be later committed by a call to
commitBlockList.
|
io.reactivex.Single<BlockBlobsUploadResponse> |
upload(io.reactivex.Flowable<ByteBuffer> data,
long length,
BlobHTTPHeaders headers,
Metadata metadata,
BlobAccessConditions accessConditions)
Creates a new block blob, or updates the content of an existing block blob.
|
BlockBlobURL |
withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
BlockBlobURL with the given pipeline. |
BlockBlobURL |
withSnapshot(String snapshot)
Creates a new
BlockBlobURL with the given snapshot. |
abortCopyFromURL, acquireLease, breakLease, changeLease, createSnapshot, delete, download, getProperties, releaseLease, renewLease, setHTTPHeaders, setMetadata, startCopyFromURL, toAppendBlobURL, toBlockBlobURL, toPageBlobURL
appendToURLPath, createPipeline, toString, toURL
public static final int MAX_PUT_BLOB_BYTES
public static final int MAX_PUT_BLOCK_BYTES
public static final int MAX_BLOCKS
public BlockBlobURL(URL url, com.microsoft.rest.v2.http.HttpPipeline pipeline)
BlockBlobURL
object.url
- A java.net.URL
to a block blob.pipeline
- An HttpPipeline
for sending requests.public BlockBlobURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
BlockBlobURL
with the given pipeline.withPipeline
in class BlobURL
pipeline
- An HttpPipeline
object to set.BlockBlobURL
object with the given pipeline.public BlockBlobURL withSnapshot(String snapshot) throws MalformedURLException, UnknownHostException
BlockBlobURL
with the given snapshot.withSnapshot
in class BlobURL
snapshot
- A String
of the snapshot identifier.BlockBlobURL
object with the given pipeline.MalformedURLException
- Appending the specified snapshot produced an invalid URL.UnknownHostException
- If the url contains an improperly formatted ipaddress or unknown host address.public io.reactivex.Single<BlockBlobsUploadResponse> upload(io.reactivex.Flowable<ByteBuffer> data, long length, BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions)
TransferManager
for convenience methods.data
- The data to write to the blob.length
- The exact length of the data. It is important that this value match precisely the length of the data
emitted by the Flowable
.headers
- BlobHTTPHeaders
metadata
- Metadata
accessConditions
- BlobAccessConditions
public io.reactivex.Single<BlockBlobsStageBlockResponse> stageBlock(String base64BlockID, io.reactivex.Flowable<ByteBuffer> data, long length, LeaseAccessConditions leaseAccessConditions)
base64BlockID
- A Base64 encoded String
that specifies the ID for this block. Note that all block ids must be the
same length.data
- The data to write to the block.length
- The exact length of the data. It is important that this value match precisely the length of the data
emitted by the Flowable
.leaseAccessConditions
- LeaseAccessConditions
public io.reactivex.Single<BlockBlobsGetBlockListResponse> getBlockList(BlockListType listType, LeaseAccessConditions leaseAccessConditions)
listType
- Specifies which type of blocks to return.leaseAccessConditions
- LeaseAccessConditions
public io.reactivex.Single<BlockBlobsCommitBlockListResponse> commitBlockList(List<String> base64BlockIDs, BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions)
TransferManager
for convenience methods.base64BlockIDs
- A list of base64 encode String
s that specifies the block IDs to be committed.headers
- BlobHTTPHeaders
metadata
- Metadata
accessConditions
- BlobAccessConditions
Copyright © 2018. All rights reserved.