[NO ISSUE][*DB][STO] += AbstractCloudIOManager.getCloudClient()
Change-Id: I69256ac1fb710bf5bb9798afa8b2bf8fa1da48eb
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18319
Reviewed-by: Michael Blow <mblow@apache.org>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
index 2bafade..175a061 100644
--- a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
+++ b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/AbstractCloudIOManager.java
@@ -339,6 +339,10 @@
cloudClient.write(bucket, key, bytes);
}
+ public ICloudClient getCloudClient() {
+ return cloudClient;
+ }
+
private Set<CloudFile> getCloudMetadataPartitionFiles() {
String metadataNamespacePath = StoragePathUtil.getNamespacePath(nsPathResolver,
MetadataConstants.METADATA_NAMESPACE, METADATA_PARTITION);
diff --git a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/ICloudClient.java b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/ICloudClient.java
index fb50dc9..89f3c81 100644
--- a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/ICloudClient.java
+++ b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/ICloudClient.java
@@ -78,7 +78,7 @@
*
* @param bucket bucket
* @param path path
- * @return bytes
+ * @return byte array containing the content, or <code>null</code> if the key does not exist
* @throws HyracksDataException HyracksDataException
*/
byte[] readAllBytes(String bucket, String path) throws HyracksDataException;