Package | Description |
---|---|
com.microsoft.azure.datalake.store |
The main Azure Data Lake Store SDK classes.
|
Modifier and Type | Method and Description |
---|---|
static void |
Core.append(String path,
long offsetToAppendTo,
byte[] contents,
int offsetWithinContentsArray,
int length,
String leaseId,
String sessionId,
SyncFlag syncFlag,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
append bytes to an existing file created with
Core.create(String, boolean, String, byte[], int, int, String, String, boolean, SyncFlag, ADLStoreClient, RequestOptions, OperationResponse) (String, boolean, String, byte[], int, int, String, String, boolean, boolean, ADLStoreClient, RequestOptions, OperationResponse) create}. |
static void |
Core.checkAccess(String path,
String rwx,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
checks whether the calling user has the required permissions for the file.
|
static void |
Core.concat(String path,
List<String> sources,
ADLStoreClient client,
boolean deleteSourceDirectory,
RequestOptions opts,
OperationResponse resp)
Concatenate the specified list of files into the target filename.
|
static void |
Core.concat(String path,
List<String> sources,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Concatenate the specified list of files into the target filename.
|
static void |
Core.concurrentAppend(String path,
byte[] contents,
int offsetWithinContentsArray,
int length,
boolean autoCreate,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
append bytes to a file.
|
static void |
Core.create(String path,
boolean overwrite,
String octalPermission,
byte[] contents,
int offsetWithinContentsArray,
int length,
String leaseId,
String sessionId,
boolean createParent,
SyncFlag syncFlag,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
create a file and write to it.
|
static boolean |
Core.delete(String path,
boolean recursive,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
delete a file or directory from Azure Data Lake.
|
static AclStatus |
Core.getAclStatus(String path,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Gets the current ACLs and permissions associated with a file or directory.
|
static AclStatus |
Core.getAclStatus(String path,
UserGroupRepresentation oidOrUpn,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Gets the current ACLs and permissions associated with a file or directory.
|
static ContentSummary |
Core.getContentSummary(String path,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Gets the content summary of a file or directory.
|
IOException |
ADLStoreClient.getExceptionFromResponse(OperationResponse resp,
String defaultMessage)
creates an
ADLException from OperationResponse . |
static DirectoryEntry |
Core.getFileStatus(String path,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Gets the directory metadata associated with a file or directory.
|
static DirectoryEntry |
Core.getFileStatus(String path,
UserGroupRepresentation oidOrUpn,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Gets the directory metadata associated with a file or directory.
|
static List<DirectoryEntry> |
Core.listStatus(String path,
String listAfter,
String listBefore,
int listSize,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
enumerates the contents of a direcotry, returning a
List of DirectoryEntry objects,
one per file or directory in the specified directory. |
static List<DirectoryEntry> |
Core.listStatus(String path,
String listAfter,
String listBefore,
int listSize,
UserGroupRepresentation oidOrUpn,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
enumerates the contents of a direcotry, returning a
List of DirectoryEntry objects,
one per file or directory in the specified directory. |
static boolean |
Core.mkdirs(String path,
String octalPermission,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
creates a directory, and all it's parent directories if they dont exist.
|
static void |
Core.modifyAclEntries(String path,
List<AclEntry> aclSpec,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Modify the acl entries for a file or directory.
|
static void |
Core.modifyAclEntries(String path,
String aclSpec,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Modify the acl entries for a file or directory.
|
static InputStream |
Core.open(String path,
long offset,
long length,
String sessionId,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
read from a file.
|
static InputStream |
Core.open(String path,
long offset,
long length,
String sessionId,
boolean speculativeRead,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
read from a file.
|
static void |
Core.removeAcl(String path,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
removes all acl entries from a file or directory.
|
static void |
Core.removeAclEntries(String path,
List<AclEntry> aclSpec,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Removes the specified ACL entries from a file or directory.
|
static void |
Core.removeAclEntries(String path,
String aclSpec,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Removes the specified ACL entries from a file or directory.
|
static void |
Core.removeDefaultAcl(String path,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
removes all default acl entries from a directory.
|
static boolean |
Core.rename(String path,
String destination,
boolean overwrite,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
rename a file.
|
static void |
Core.setAcl(String path,
List<AclEntry> aclSpec,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Sets the ACLs for a file or directory.
|
static void |
Core.setAcl(String path,
String aclSpec,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Sets the ACLs for a file or directory.
|
static void |
Core.setExpiryTime(String path,
ExpiryOption expiryOption,
long milliseconds,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Sets the expiry time on a file.
|
static void |
Core.setOwner(String path,
String user,
String group,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
sets the owning user and group of the file.
|
static void |
Core.setPermission(String path,
String octalPermissions,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
Sets the permissions of the specified file ro directory.
|
static void |
Core.setTimes(String path,
long atime,
long mtime,
ADLStoreClient client,
RequestOptions opts,
OperationResponse resp)
sets one or both of the times (Modified and Access time) of the file or directory
|
Copyright © 2019 Microsoft Corporation. All rights reserved.