This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.IO.FileSystem.IFileSystem Interface Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Public Member Functions | List of all members
Org.Apache.REEF.IO.FileSystem.IFileSystem Interface Reference

A file system abstraction. More...

Inherited by Org.Apache.REEF.IO.FileSystem.AzureBlob.AzureBlockBlobFileSystem, Org.Apache.REEF.IO.FileSystem.Hadoop.HadoopFileSystem, and Org.Apache.REEF.IO.FileSystem.Local.LocalFileSystem.

Public Member Functions

Stream Open (Uri fileUri)
 Opens the given URI for reading More...
 
Stream Create (Uri fileUri)
 Creates a new file under the given URI. More...
 
void Delete (Uri fileUri)
 Deletes the file under the given URI. More...
 
bool Exists (Uri fileUri)
 Determines whether a file exists under the given URI. More...
 
void Copy (Uri sourceUri, Uri destinationUri)
 Copies the file referenced by sourceUri to destinationUri. More...
 
void CopyToLocal (Uri remoteFileUri, string localName)
 Copies the remote file to a local file. More...
 
void CopyFromLocal (string localFileName, Uri remoteFileUri)
 Copies the specified file to the remote location. More...
 
void CreateDirectory (Uri directoryUri)
 Creates a new directory. More...
 
void DeleteDirectory (Uri directoryUri)
 Deletes a directory. More...
 
IEnumerable< Uri > GetChildren (Uri directoryUri)
 Get the children on the given URI, if that refers to a directory. More...
 
Uri CreateUriForPath (string path)
 Create Uri from a given file path. More...
 
FileStatus GetFileStatus (Uri remoteFileUri)
 Gets the FileStatus for remote file. More...
 

Detailed Description

A file system abstraction.

Member Function Documentation

void Org.Apache.REEF.IO.FileSystem.IFileSystem.Copy ( Uri  sourceUri,
Uri  destinationUri 
)

Copies the file referenced by sourceUri to destinationUri.

Parameters
sourceUri
destinationUri
Exceptions
IOException
void Org.Apache.REEF.IO.FileSystem.IFileSystem.CopyFromLocal ( string  localFileName,
Uri  remoteFileUri 
)

Copies the specified file to the remote location.

Parameters
localFileName
remoteFileUri
Exceptions
IOException
void Org.Apache.REEF.IO.FileSystem.IFileSystem.CopyToLocal ( Uri  remoteFileUri,
string  localName 
)

Copies the remote file to a local file.

Parameters
remoteFileUri
localName
Exceptions
IOException
Stream Org.Apache.REEF.IO.FileSystem.IFileSystem.Create ( Uri  fileUri)

Creates a new file under the given URI.

Parameters
fileUri
Returns
Exceptions
IOExceptionIf the URI couldn't be created.
void Org.Apache.REEF.IO.FileSystem.IFileSystem.CreateDirectory ( Uri  directoryUri)

Creates a new directory.

Parameters
directoryUri
Exceptions
IOException
Uri Org.Apache.REEF.IO.FileSystem.IFileSystem.CreateUriForPath ( string  path)

Create Uri from a given file path.

The file path can be full with prefix or relative without prefix. If null is passed as the path, ArgumentException will be thrown.

Parameters
path
Returns
void Org.Apache.REEF.IO.FileSystem.IFileSystem.Delete ( Uri  fileUri)

Deletes the file under the given URI.

Parameters
fileUri
Exceptions
IOException
void Org.Apache.REEF.IO.FileSystem.IFileSystem.DeleteDirectory ( Uri  directoryUri)

Deletes a directory.

Parameters
directoryUri
Exceptions
IOException
bool Org.Apache.REEF.IO.FileSystem.IFileSystem.Exists ( Uri  fileUri)

Determines whether a file exists under the given URI.

Parameters
fileUri
Returns
IEnumerable<Uri> Org.Apache.REEF.IO.FileSystem.IFileSystem.GetChildren ( Uri  directoryUri)

Get the children on the given URI, if that refers to a directory.

Parameters
directoryUri
Returns
Exceptions
IOException
FileStatus Org.Apache.REEF.IO.FileSystem.IFileSystem.GetFileStatus ( Uri  remoteFileUri)

Gets the FileStatus for remote file.

Parameters
remoteFileUri
Exceptions
ArgumentNullExceptionIf remote file URI is null
Returns
FileStatus
Stream Org.Apache.REEF.IO.FileSystem.IFileSystem.Open ( Uri  fileUri)

Opens the given URI for reading

Parameters
fileUri
Returns
Exceptions
IOExceptionIf the URI couldn't be opened.

The documentation for this interface was generated from the following file: