com.vertica.sdk.DFSFile Class Reference

List of all members.

Public Types

enum  DFSDistribution { HINT_INITIATOR, HINT_REPLICATE, HINT_SEGMENTED }
enum  DFSScope { NS_GLOBAL, NS_TRANSACTION, NS_SESSION }
 HINT_INITIATOR
 NS_GLOBAL

Public Member Functions

void create (DFSScope dfsScope, DFSDistribution dfsDistrib) throws UdfException, DestroyInvocation
int deleteIt (boolean isRecursively) throws UdfException, DestroyInvocation
 DFSFile (String fName, FileManager fmgr, boolean is_dir, boolean is_file, boolean exists, long fSize) throws UdfException, DestroyInvocation
 DFSFile (String fName, FileManager fmgr) throws UdfException, DestroyInvocation
 DFSFile (ServerInterface srvInterface, String fName) throws UdfException, DestroyInvocation
 DFSFile (ServerInterface srvInterface)
 DFSFile ()
boolean exists () throws UdfException
DFSDistribution getDistribution ()
FileManager getFileManager ()
long getFileWriter ()
String getName ()
DFSScope getScope ()
ServerInterface getServerInterface ()
long getSize ()
DFSFileStatus getStatus ()
boolean isDir ()
boolean isFile ()
List< DFSFile > listFiles () throws UdfException, DestroyInvocation
void setDir (boolean thisIsaDirectory)
void setDistribution (DFSDistribution dfsDist)
void setFile (boolean thisIsaFile)
void setFileManager (ServerInterface srvInterface)
void setName (String fName) throws UdfException, DestroyInvocation
void setScope (DFSScope dfsScope)
void setSize (long fSize)
void setStatus (DFSFileStatus dfsStatus)

Package Attributes

long fileWriter

Detailed Description

The main class used by users to initiate DFS operations


Member Enumeration Documentation

enum com::vertica::sdk::DFSFile::DFSDistribution

Defines how a file is replicated across nodes in the cluster. Used at the file creation time.

enum com::vertica::sdk::DFSFile::DFSScope

Defines the scope fo the file. Used at the file creation time.


Constructor & Destructor Documentation

com.vertica.sdk.DFSFile.DFSFile (  ) 

DFSFile INITIATION IS ONLY AVAILABLE DURING THE PLANNING/SETUP AND FINALIZE/DESTROY PHASES OF A PLAN. NOT AVAILABLE DURING EXECUTION/PROCESSING.


Member Function Documentation

int com.vertica.sdk.DFSFile.deleteIt ( boolean  isRecursively  )  throws UdfException, DestroyInvocation

Deletes a DFS file.

Returns:
0 is successful, throw exceptions if there are errors.

List<DFSFile> com.vertica.sdk.DFSFile.listFiles (  )  throws UdfException, DestroyInvocation

Lists files under the path specified by 'fileName'

Returns:
a list of DFSFile found under the path.

void com.vertica.sdk.DFSFile.setName ( String  fName  )  throws UdfException, DestroyInvocation

Renames file identified by 'srcFilePath' to 'destFilePath' returns 0, throws exceptions if there are errors public int rename(String newName) throws UdfException { validateFileOrThrow(); return fileManager.rename(fileName, newName); }

Copy a file/directory from 'srcFilePath' to 'destFilePath'. returns 0, throws exceptions if there are errors. public int copy(DFSFile dfsFile, boolean isRecursively) throws UdfException { validateFileOrThrow(); return fileManager.copy(fileName, dfsFile.getName(), isRecursively);

}

Make a directory, identified by 'dirPath' returns 0, throws exceptions if there are errors. public int makeDir() throws UdfException { validateFileOrThrow(); return fileManager.makeDir(fileName); }