use of com.microsoft.azure.hdinsight.sdk.rest.azure.datalake.analytics.accounts.models.DataLakeStoreAccountInformation in project azure-tools-for-java by Microsoft.
the class AzureSparkServerlessAccount method getStorageRootPath.
@Nullable
public String getStorageRootPath() {
String storageRootPath = null;
DataLakeAnalyticsAccount accountDetail = this.getDetailResponse();
if (accountDetail != null) {
// find default storage account name and suffix
String defaultStorageAccountName = accountDetail.defaultDataLakeStoreAccount();
storageRootPath = accountDetail.dataLakeStoreAccounts().stream().filter(info -> info.name().equals(defaultStorageAccountName)).findFirst().map(DataLakeStoreAccountInformation::suffix).map(suffix -> String.format("adl://%s.%s/", defaultStorageAccountName, suffix)).orElse(null);
}
return storageRootPath;
}
Aggregations