Core Class

Definition

Core is a stateless class. It contains thread safe methods for REST APIs. For each rest api command it sends a HTTP request to server. Every API is threadsafe with some exceptions in Create and Append (Listed in the documentation of the respective apis).

public class Core
type Core = class
Public Class Core
Inheritance
Core

Constructors

Core()

Methods

Append(String, String, String, SyncFlag, Int64, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse)

Append data to file. This is a synchronous operation.

Not threadsafe when Append is called for same path from different threads.

AppendAsync(String, String, String, SyncFlag, Int64, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Append data to file. This is an asynchronous operation.

Not threadsafe when AppendAsync is called for same path from different threads.

CheckAccessSync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Checks if the user/group has specified access of the given path

ConcatAsync(String, List<String>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Concatenate source files to a destination file. By default it wont delete source directory

ConcatAsync(String, List<String>, Boolean, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Concatenate source files to a destination file

ConcurrentAppend(String, Boolean, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse)

Performs concurrent append synchronously at server. The offset at which append will occur is determined by server

ConcurrentAppendAsync(String, Boolean, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Performs concurrent append asynchronously at server. The offset at which append will occur is determined by server

Create(String, Boolean, String, String, String, Boolean, SyncFlag, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse)

Create a new file. This is a synchronous operation.

Not threadsafe when Create is called for same path from different threads with different leaseId.

CreateAsync(String, Boolean, String, String, String, Boolean, SyncFlag, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Create a new file. This is an asynchronous operation.

Not threadsafe when CreateAsync is called multiple times for same path with different leaseId.

DeleteAsync(String, Boolean, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Deletes a file or directory

EnumerateDeletedItemsAsync(String, String, Int32, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Lists the deleted streams or directories in the trash matching the hint. Caution: Undeleting files is a best effort operation. There are no guarantees that a file can be restored once it is deleted. The use of this API is enabled via whitelisting. If your ADL account is not whitelisted, then using this api will throw Not immplemented exception. For further information and assistance please contact Microsoft support.

GetAclStatusAsync(String, Nullable<UserGroupRepresentation>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Gets the ACL entry list, owner ID, group ID, octal permission and sticky bit (only for a directory) of the file/directory

GetContentSummaryAsync(String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Gets content summary of a file or directory

GetFileStatusAsync(String, Nullable<UserGroupRepresentation>, AdlsClient, RequestOptions, OperationResponse, CancellationToken, Boolean)

Gets meta data like full path, type (file or directory), group, user, permission, length,last Access Time,last Modified Time, expiry time, acl Bit, replication Factor

ListStatusAsync(String, String, String, Int32, Nullable<UserGroupRepresentation>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Lists the sub-directories or files contained in a directory

MkdirsAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Creates a directory.

ModifyAclEntriesAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Modifies acl entries of a file or directory with given ACL list. It merges the exisitng ACL list with given list.

ModifyAclEntriesAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Modifies acl entries of a file or directory with given ACL list. It merges the exisitng ACL list with given list.

Open(String, String, Int64, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse)

Reads a file from server. This is synchronous operation.

OpenAsync(String, String, Int64, Byte[], Int32, Int32, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Reads a file from server. This is an asynchronous operation.

RemoveAclAsync(String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Removes all Acl Entries for a file or directory.

RemoveAclEntriesAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Removes specified Acl Entries for a file or directory.

RemoveAclEntriesAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Removes specified Acl Entries for a file or directory.

RemoveDefaultAclAsync(String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Removes all Acl Entries of AclScope default for a file or directory.

RenameAsync(String, String, Boolean, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Renames a path. For renaming directory: If the destination exists then it puts the source directory one level under the destination.

RestoreDeletedItemsAsync(String, String, String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Restore a stream or directory from trash to user space. This is a synchronous operation. Not threadsafe when Restore is called for same path from different threads. Caution: Undeleting files is a best effort operation. There are no guarantees that a file can be restored once it is deleted. The use of this API is enabled via whitelisting. If your ADL account is not whitelisted, then using this api will throw Not immplemented exception. For further information and assistance please contact Microsoft support.

SetAclAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets Acl Entries for a file or directory. It wipes out the existing Acl entries for the path.

SetAclAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets Acl Entries for a file or directory. It wipes out the existing Acl entries for the path.

SetExpiryTimeAsync(String, ExpiryOption, Int64, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Set the expiry time

SetOwnerAsync(String, String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets the owner or/and group of the path

SetPermissionAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

Sets the permission of the specified path

Applies to