![]() |
Java SDK Documentation
23.3.0
|

Public Member Functions | |
| DFSFileReader (DFSFile dfsFile) | |
| void | close () throws UdfException, DestroyInvocation |
| boolean | isOpen () |
| void | open () throws UdfException, DestroyInvocation |
| int | read (ByteBuffer buffer, int size) throws UdfException, DestroyInvocation |
| long | seek (long offset, int origin) throws UdfException, DestroyInvocation |
| long | size () |
| void com.vertica.sdk.DFSFileReader.close | ( | ) | throws UdfException, DestroyInvocation |
Closes the file opened for reading
| UdfException | UDF problem |
| DestroyInvocation | vertica canceling – do not catch or handle |
| int com.vertica.sdk.DFSFileReader.read | ( | ByteBuffer | buffer, |
| int | size | ||
| ) | throws UdfException, DestroyInvocation |
Reads 'size' of bytes into buffer pointed by 'ptr' from the file opened for reading.
| buffer | buffer to read into |
| size | number of bytes to read |
| UdfException | UDF problem |
| DestroyInvocation | vertica canceling – do not catch or handle |
| long com.vertica.sdk.DFSFileReader.seek | ( | long | offset, |
| int | origin | ||
| ) | throws UdfException, DestroyInvocation |
Reposition the read file offset.
| offset | location to seek to |
| origin | origin from which to seek |
| UdfException | UDF problem |
| DestroyInvocation | vertica canceling – do not catch or handle |