public final class BlockBlobURL extends BlobURL
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 putBlob.
|
static int |
MAX_PUT_BLOCK_BYTES
Indicates the maximum number of bytes that can be sent in a call to putBlock.
|
Constructor and Description |
---|
BlockBlobURL(java.net.URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
BlockBlobURL object. |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlockBlobGetBlockListHeaders,BlockList>> |
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<com.microsoft.rest.v2.RestResponse<BlobPutHeaders,java.lang.Void>> |
putBlob(io.reactivex.Flowable<java.nio.ByteBuffer> data,
long length,
BlobHTTPHeaders headers,
Metadata metadata,
BlobAccessConditions accessConditions)
Creates a new block blob, or updates the content of an existing block blob.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlockBlobPutBlockHeaders,java.lang.Void>> |
putBlock(java.lang.String base64BlockID,
io.reactivex.Flowable<java.nio.ByteBuffer> data,
long length,
LeaseAccessConditions leaseAccessConditions)
Uploads the specified block to the block blob's "staging area" to be later commited by a call to
PutBlockList.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlockBlobPutBlockListHeaders,java.lang.Void>> |
putBlockList(java.util.List<java.lang.String> base64BlockIDs,
BlobHTTPHeaders headers,
Metadata metadata,
BlobAccessConditions accessConditions)
Writes a blob by specifying the list of block IDs that make up the blob.
|
BlockBlobURL |
withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
BlockBlobURL with the given pipeline. |
BlockBlobURL |
withSnapshot(java.lang.String snapshot)
Creates a new
BlockBlobURL with the given snapshot. |
abortCopy, acquireLease, breakLease, changeLease, createSnapshot, delete, getBlob, getPropertiesAndMetadata, releaseLease, renewLease, setMetadata, setProperties, startCopy, toAppendBlobURL, toBlockBlobURL, toPageBlobURL
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(java.net.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(java.lang.String snapshot) throws java.net.MalformedURLException, java.net.UnknownHostException
BlockBlobURL
with the given snapshot.withSnapshot
in class BlobURL
snapshot
- A String
of the snapshot identifier.BlockBlobURL
object with the given pipeline.java.net.MalformedURLException
java.net.UnknownHostException
public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlobPutHeaders,java.lang.Void>> putBlob(io.reactivex.Flowable<java.nio.ByteBuffer> data, long length, BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions)
data
- A Flowable
emitting ByteBuffer
which contain the data to write to the blob.length
- A long
indicating how long the data is.headers
- A BlobHTTPHeaders
object that specifies which properties to set on the blob.metadata
- A Metadata
object that specifies key value pairs to set on the blob.accessConditions
- A BlobAccessConditions
object that specifies under which conditions the operation should
complete.Single
which emits a RestResponse
containing the BlobPutHeaders
and a
Void
body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlockBlobPutBlockHeaders,java.lang.Void>> putBlock(java.lang.String base64BlockID, io.reactivex.Flowable<java.nio.ByteBuffer> data, long length, LeaseAccessConditions leaseAccessConditions)
base64BlockID
- A Base64 encoded String
that specifies the ID for this block.data
- A Flowable
of ByteBuffer
which contains the data to write to the block.length
- A long
indicating how long the data is.leaseAccessConditions
- A LeaseAccessConditions
object that specifies the lease on the blob if there is one.Single
which emits a RestResponse
containing the BlockBlobPutBlockHeaders
and a
Void
body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlockBlobGetBlockListHeaders,BlockList>> getBlockList(BlockListType listType, LeaseAccessConditions leaseAccessConditions)
listType
- A BlockListType
value specifies which type of blocks to return.leaseAccessConditions
- A LeaseAccessConditions
object that specifies the lease on the blob if there is one.Single
which emits a RestResponse
containing the BlockBlobGetBlockListHeaders
and a BlockList
body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlockBlobPutBlockListHeaders,java.lang.Void>> putBlockList(java.util.List<java.lang.String> base64BlockIDs, BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions)
base64BlockIDs
- A java.util.List
of base64 String
that specifies the block IDs to be committed.headers
- A BlobHTTPHeaders
object that specifies which properties to set on the blob.metadata
- A Metadata
object that specifies key value pairs to set on the blob.accessConditions
- A BlobAccessConditions
object that specifies under which conditions the operation should
complete.Single
which emits a RestResponse
containing the BlockBlobPutBlockListHeaders
and a Void
body if successful.