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 |
Defines how a file is replicated across nodes in the cluster. Used at the file creation time.
Defines the scope fo the file. Used at the file creation time.
| 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); }