Public Member Functions | |
| abstract void | closeReader (long readerID) throws UdfException, DestroyInvocation |
| abstract void | closeWriter (long writerID) throws UdfException, DestroyInvocation |
| abstract int | deleteIt (String fileName, boolean isRecursively) throws UdfException, DestroyInvocation |
| abstract void | finalize () |
| abstract boolean | initDFSFile (DFSFile file) throws UdfException, DestroyInvocation |
| abstract List< DFSFile > | listFiles (String fileName) throws UdfException, DestroyInvocation |
| abstract long | openForRead (String fileName) throws UdfException, DestroyInvocation |
| abstract long | openForWrite (String fileName, DFSFile.DFSScope dfsScope, DFSFile.DFSDistribution dfsDistrib) throws UdfException, DestroyInvocation |
| abstract int | read (long readerID, ByteBuffer buffer, int size) throws UdfException, DestroyInvocation |
| abstract long | seek (long readerID, long offset, int origin) throws UdfException, DestroyInvocation |
| abstract int | write (long writerID, ByteBuffer buffer) throws UdfException, DestroyInvocation |
| abstract void com.vertica.sdk.FileManager.closeReader | ( | long | readerID | ) | throws UdfException, DestroyInvocation [pure virtual] |
Closes the file opened for reading, identified by 'readerID'
| abstract void com.vertica.sdk.FileManager.closeWriter | ( | long | writerID | ) | throws UdfException, DestroyInvocation [pure virtual] |
Closes teh file opened for writing, identified by 'writerID'
| abstract int com.vertica.sdk.FileManager.deleteIt | ( | String | fileName, | |
| boolean | isRecursively | |||
| ) | throws UdfException, DestroyInvocation [pure virtual] |
Deletes a DFSFile, identified by full path 'fileName'.
| abstract void com.vertica.sdk.FileManager.finalize | ( | ) | [pure virtual] |
Finalizes a plan/query/statement. Should only invoke on the initiator node of a query. Complete file replication and commit metadata into the catalog. returns nothing, throws exceptions if there are errors.
| abstract boolean com.vertica.sdk.FileManager.initDFSFile | ( | DFSFile | file | ) | throws UdfException, DestroyInvocation [pure virtual] |
Initialize a DFSFile upon constructing. returns true if file exists in the DFS, false otherwise, throws exceptions if there are errors.
| abstract List<DFSFile> com.vertica.sdk.FileManager.listFiles | ( | String | fileName | ) | throws UdfException, DestroyInvocation [pure virtual] |
Lists file under the path specified by 'fileName'
| abstract long com.vertica.sdk.FileManager.openForRead | ( | String | fileName | ) | throws UdfException, DestroyInvocation [pure virtual] |
Opens a file for reading
| abstract long com.vertica.sdk.FileManager.openForWrite | ( | String | fileName, | |
| DFSFile.DFSScope | dfsScope, | |||
| DFSFile.DFSDistribution | dfsDistrib | |||
| ) | throws UdfException, DestroyInvocation [pure virtual] |
Opens a file for writing
| abstract int com.vertica.sdk.FileManager.read | ( | long | readerID, | |
| ByteBuffer | buffer, | |||
| int | size | |||
| ) | throws UdfException, DestroyInvocation [pure virtual] |
Reads 'size' of bytes into buffer from the file identified by 'readerID'.
| abstract long com.vertica.sdk.FileManager.seek | ( | long | readerID, | |
| long | offset, | |||
| int | origin | |||
| ) | throws UdfException, DestroyInvocation [pure virtual] |
Reposition the read file offset
| abstract int com.vertica.sdk.FileManager.write | ( | long | writerID, | |
| ByteBuffer | buffer | |||
| ) | throws UdfException, DestroyInvocation [pure virtual] |
Writes bytes into the file identified by 'writerID' from the buffer. Bytes are retrieved from buffer starting from the current position till it's limit. Current position will be advanced depending on how many bytes are written.