Package ai.rapids.cudf
Class CuFileWriteHandle
java.lang.Object
ai.rapids.cudf.CuFileWriteHandle
- All Implemented Interfaces:
AutoCloseable
Represents a cuFile file handle for reading.
-
Constructor Summary
ConstructorsConstructorDescriptionCuFileWriteHandle
(String path) Construct a writer using the specified file path. -
Method Summary
Modifier and TypeMethodDescriptionlong
append
(CuFileBuffer buffer, long length) Append the specified cuFile buffer to the file.void
close()
protected long
void
write
(CuFileBuffer buffer, long length, long fileOffset) Write the specified cuFile buffer into the file.
-
Constructor Details
-
CuFileWriteHandle
Construct a writer using the specified file path.- Parameters:
path
- The file path for writing.
-
-
Method Details
-
write
Write the specified cuFile buffer into the file.- Parameters:
buffer
- The cuFile buffer to write from.length
- The number of bytes to write.fileOffset
- The starting file offset from which to write.
-
append
Append the specified cuFile buffer to the file.- Parameters:
buffer
- The cuFile buffer to append from.length
- The number of bytes to append.- Returns:
- The file offset from which the buffer was appended.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getPointer
protected long getPointer()
-