Skip to content

Commit b8fae7a

Browse files
authored
Addressed APIView Comments for GA of storage libraries (Azure#20934)
1 parent f52fbf3 commit b8fae7a

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClient.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public class EncryptedBlobClient extends BlobClient {
7575

7676
/**
7777
* Creates and opens an output stream to write data to the block blob.
78+
* <p>
79+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
80+
* obtained below with a {@link java.io.BufferedOutputStream}.
7881
*
7982
* @return A {@link BlobOutputStream} object used to write data to the blob.
8083
* @throws BlobStorageException If a storage service error occurred.
@@ -85,6 +88,9 @@ public BlobOutputStream getBlobOutputStream() {
8588

8689
/**
8790
* Creates and opens an output stream to write data to the block blob.
91+
* <p>
92+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
93+
* obtained below with a {@link java.io.BufferedOutputStream}.
8894
*
8995
* @return A {@link BlobOutputStream} object used to write data to the blob.
9096
* @param overwrite Whether or not to overwrite, should data exist on the blob.
@@ -106,6 +112,9 @@ public BlobOutputStream getBlobOutputStream(boolean overwrite) {
106112
* will be overwritten.
107113
* <p>
108114
* To avoid overwriting, pass "*" to {@link BlobRequestConditions#setIfNoneMatch(String)}.
115+
* <p>
116+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
117+
* obtained below with a {@link java.io.BufferedOutputStream}.
109118
*
110119
* @param parallelTransferOptions {@link ParallelTransferOptions} used to configure buffered uploading.
111120
* @param headers {@link BlobHttpHeaders}
@@ -130,7 +139,10 @@ public BlobOutputStream getBlobOutputStream(ParallelTransferOptions parallelTran
130139
* will be overwritten.
131140
* <p>
132141
* To avoid overwriting, pass "*" to {@link BlobRequestConditions#setIfNoneMatch(String)}.
133-
*
142+
* <p>
143+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
144+
* obtained below with a {@link java.io.BufferedOutputStream}.
145+
*
134146
* @param options {@link BlockBlobOutputStreamOptions}
135147
*
136148
* @return A {@link BlobOutputStream} object used to write data to the blob.

sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlockBlobClient.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public final class BlockBlobClient extends BlobClientBase {
9797

9898
/**
9999
* Creates and opens an output stream to write data to the block blob.
100+
* <p>
101+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
102+
* obtained below with a {@link java.io.BufferedOutputStream}.
100103
*
101104
* @return A {@link BlobOutputStream} object used to write data to the blob.
102105
* @throws BlobStorageException If a storage service error occurred.
@@ -107,6 +110,9 @@ public BlobOutputStream getBlobOutputStream() {
107110

108111
/**
109112
* Creates and opens an output stream to write data to the block blob.
113+
* <p>
114+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
115+
* obtained below with a {@link java.io.BufferedOutputStream}.
110116
*
111117
* @return A {@link BlobOutputStream} object used to write data to the blob.
112118
* @param overwrite Whether or not to overwrite, should data exist on the blob.
@@ -128,6 +134,9 @@ public BlobOutputStream getBlobOutputStream(boolean overwrite) {
128134
* will be overwritten.
129135
* <p>
130136
* To avoid overwriting, pass "*" to {@link BlobRequestConditions#setIfNoneMatch(String)}.
137+
* <p>
138+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
139+
* obtained below with a {@link java.io.BufferedOutputStream}.
131140
*
132141
* @param requestConditions A {@link BlobRequestConditions} object that represents the access conditions for the
133142
* blob.
@@ -144,6 +153,9 @@ public BlobOutputStream getBlobOutputStream(BlobRequestConditions requestConditi
144153
* will be overwritten.
145154
* <p>
146155
* To avoid overwriting, pass "*" to {@link BlobRequestConditions#setIfNoneMatch(String)}.
156+
* <p>
157+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
158+
* obtained below with a {@link java.io.BufferedOutputStream}.
147159
*
148160
* @param parallelTransferOptions {@link ParallelTransferOptions} used to configure buffered uploading.
149161
* @param headers {@link BlobHttpHeaders}
@@ -168,6 +180,9 @@ public BlobOutputStream getBlobOutputStream(ParallelTransferOptions parallelTran
168180
* will be overwritten.
169181
* <p>
170182
* To avoid overwriting, pass "*" to {@link BlobRequestConditions#setIfNoneMatch(String)}.
183+
* <p>
184+
* Note: We recommend you call write with reasonably sized buffers, you can do so by wrapping the BlobOutputStream
185+
* obtained below with a {@link java.io.BufferedOutputStream}.
171186
*
172187
* @param options {@link BlockBlobOutputStreamOptions}
173188
* @return A {@link BlobOutputStream} object used to write data to the blob.

sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/FileSystemUndeleteOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Extended options that may be passed when restoring a file system.
1111
*/
1212
@Fluent
13-
public class FileSystemUndeleteOptions {
13+
public final class FileSystemUndeleteOptions {
1414
private final String deletedFileSystemName;
1515
private final String deletedFileSystemVersion;
1616
private String destinationFileSystemName;

0 commit comments

Comments
 (0)