![]() |
Java SDK Documentation
8.1
|
Classes | |
enum | DFSDistribution |
enum | DFSScope |
Public Member Functions | |
DFSFile () | |
DFSFile (ServerInterface srvInterface) | |
DFSFile (ServerInterface srvInterface, String fName) throws UdfException, DestroyInvocation | |
DFSFile (String fName, FileManager fmgr) throws UdfException, DestroyInvocation | |
DFSFile (String fName, FileManager fmgr, boolean is_dir, boolean is_file, boolean exists, long fSize) throws UdfException, DestroyInvocation | |
void | create (DFSScope dfsScope, DFSDistribution dfsDistrib) throws UdfException, DestroyInvocation |
int | deleteIt (boolean isRecursively) throws UdfException, DestroyInvocation |
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) |
The main class used by users to initiate DFS operations
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.
int com.vertica.sdk.DFSFile.deleteIt | ( | boolean | isRecursively | ) | throws UdfException, DestroyInvocation |
Deletes a DFS file.
List<DFSFile> com.vertica.sdk.DFSFile.listFiles | ( | ) | throws UdfException, DestroyInvocation |
Lists files under the path specified by 'fileName'
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); }