Class ListPathsOptions
java.lang.Object
com.azure.storage.file.datalake.models.ListPathsOptions
Defines options available to configure the behavior of a call to listContainersSegment on a
DataLakeFileSystemClient
or a DataLakeFileSystemAsyncClient
object. See the constructor for details on each of the options. Null may be
passed in place of an object of this type if no options are desirable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the maximum number of blobs to return per page, including all BlobPrefix elements.getPath()
Specifies the path to filter the results to.boolean
Specifies if the call to listContainersSegment should recursively include all paths.boolean
Valid only when Hierarchical Namespace is enabled for the account.setMaxResults
(Integer maxResults) Specifies the maximum number of blobs to return, including all BlobPrefix elements.Specifies the path to filter the results to.setRecursive
(boolean recursive) Specifies if the call to listContainersSegment should recursively include all paths.setUserPrincipalNameReturned
(boolean isUserPrincipalNameReturned) Valid only when Hierarchical Namespace is enabled for the account.
-
Constructor Details
-
ListPathsOptions
public ListPathsOptions()Constructs an unpopulatedListPathsOptions
.
-
-
Method Details
-
getPath
Specifies the path to filter the results to. An error occurs if the path does not exist.- Returns:
- the path value.
-
isRecursive
public boolean isRecursive()Specifies if the call to listContainersSegment should recursively include all paths.- Returns:
true
if the call to listContainerSegment recursively includes all paths.
-
isUserPrincipalNameReturned
public boolean isUserPrincipalNameReturned()Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned by the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names.- Returns:
- the userPrincipalNameReturned value.
-
setPath
Specifies the path to filter the results to. An error occurs if the path does not exist.- Parameters:
path
- The path value- Returns:
- the updated ListPathsOptions object
-
setRecursive
Specifies if the call to listContainersSegment should recursively include all paths.- Parameters:
recursive
-true
if the call to listContainerSegment recursively includes all paths.- Returns:
- the updated ListPathsOptions object.
-
setUserPrincipalNameReturned
Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned by the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names.- Parameters:
isUserPrincipalNameReturned
- The userPrincipalNameReturned value- Returns:
- the updated ListPathsOptions object
-
getMaxResults
Specifies the maximum number of blobs to return per page, including all BlobPrefix elements. If the request does not specify maxResults or specifies a value greater than 5,000, the server will return up to 5,000 items per page.- Returns:
- the number of containers to be returned in a single response
-
setMaxResults
Specifies the maximum number of blobs to return, including all BlobPrefix elements. If the request does not specify maxResults or specifies a value greater than 5,000, the server will return up to 5,000 items.- Parameters:
maxResults
- The number of containers to return in a single response- Returns:
- the updated ListBlobContainersOptions object
- Throws:
IllegalArgumentException
- IfmaxResults
is less than or equal to0
.
-