Skip to content

Commit

Permalink
Add Javadoc for applyClientConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnc committed Nov 12, 2024
1 parent 689dadd commit 37bcf16
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions azure/src/main/java/org/apache/iceberg/azure/AzureProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ public Optional<Long> adlsWriteBlockSize() {
return Optional.ofNullable(adlsWriteBlockSize);
}

/**
* Applies configuration to the {@link DataLakeFileSystemClientBuilder} to provide the endpoint
* and credentials required to create an instance of the client.
*
* <p>The default endpoint is constructed in the form {@code
* https://{account}.dfs.core.windows.net} and default credentials are provided via the {@link
* com.azure.identity.DefaultAzureCredential}.
*
* @param account the service account name
* @param builder the builder instance
*/
public void applyClientConfiguration(String account, DataLakeFileSystemClientBuilder builder) {
String sasToken = adlsSasTokens.get(account);
if (sasToken != null && !sasToken.isEmpty()) {
Expand Down

0 comments on commit 37bcf16

Please sign in to comment.