Java SDK Documentation
24.1.0
|
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, DFSFile.DFSRootParentType parentType, String parentName) 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 long | size (long readerID) throws UdfException, DestroyInvocation |
abstract int | write (long writerID, ByteBuffer buffer) throws UdfException, DestroyInvocation |
File Manager is a session level co-ordinator, which will be used by DFSFile, DFSFileReader and DFSFileWriter to interact with Catalog and Storage system of Vertica.
|
abstract |
Closes the file opened for reading, identified by 'readerID'
readerID | id of the reader to close |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFileReader.close().
|
abstract |
Closes the file opened for writing, identified by 'writerID'
writerID | id of the writer to close |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFileWriter.close().
|
abstract |
Deletes a DFSFile, identified by full path 'fileName'.
fileName | the file or directory to delete |
isRecursively | whether to delete recursively |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFile.deleteIt().
|
abstract |
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 |
Initialize a DFSFile upon constructing.
file | the DFS file to initialize |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
|
abstract |
Lists file under the path specified by 'fileName'
fileName | name of file/directory to list |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFile.listFiles().
|
abstract |
Opens a file for reading
fileName | the filename |
parentType | type of the parent |
parentName | name of the parent |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
|
abstract |
Opens a file for writing
fileName | name of file |
dfsScope | scope |
dfsDistrib | distribution |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFileWriter.open().
|
abstract |
Reads 'size' of bytes into buffer from the file identified by 'readerID'.
readerID | id of the file reader |
buffer | ByteBuffer to read into |
size | number of bytes to read |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFileReader.read().
|
abstract |
Reposition the read file offset
readerID | id of the file reader |
offset | offset to seek to |
origin | origin from which to seek |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFileReader.seek().
|
abstract |
Get size of file identified by 'readerID'
readerID | id of the file reader |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
|
abstract |
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.
writerID | id of the writer |
buffer | ByteBuffer from which to write |
UdfException | UDF problem |
DestroyInvocation | vertica canceling – do not catch or handle |
Referenced by com.vertica.sdk.DFSFileWriter.write().