suneet-s commented on a change in pull request #9306: implement Azure
InputSource reader and deprecate Azure FireHose
URL: https://github.com/apache/druid/pull/9306#discussion_r374403992
##########
File path:
extensions-contrib/azure-extensions/src/main/java/org/apache/druid/storage/azure/AzureStorage.java
##########
@@ -117,4 +123,26 @@ private CloudBlobContainer
getOrCreateCloudBlobContainer(final String containerN
return cloudBlobContainer;
}
+
+ public ResultSegmentDruid<ListBlobItem>
listBlobsWithPrefixInContainerSegmented(
+ final String containerName,
+ final String prefix,
+ ResultContinuation continuationToken,
+ int maxResults
+ ) throws StorageException, URISyntaxException
+ {
+ CloudBlobContainer cloudBlobContainer =
cloudBlobClient.getContainerReference(containerName);
+ return new ResultSegmentDruid<ListBlobItem>(cloudBlobContainer
+ .listBlobsSegmented(
+ prefix,
+ /* Use flat blob
listing here so that we get only blob types and not directories.*/
+ USE_FLAT_BLOB_LISTING,
+ EnumSet
+
.noneOf(BlobListingDetails.class),
+ maxResults,
+ (ResultContinuation)
null,
+ (BlobRequestOptions)
null,
+ (OperationContext) null
Review comment:
I don't think you need to cast nulls
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]