Class CuFileWriteHandle

java.lang.Object
ai.rapids.cudf.CuFileWriteHandle
All Implemented Interfaces:
AutoCloseable

public final class CuFileWriteHandle extends Object
Represents a cuFile file handle for reading.
  • Constructor Details

    • CuFileWriteHandle

      public CuFileWriteHandle(String path)
      Construct a writer using the specified file path.
      Parameters:
      path - The file path for writing.
  • Method Details

    • write

      public void write(CuFileBuffer buffer, long length, long fileOffset)
      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

      public long append(CuFileBuffer buffer, long length)
      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 interface AutoCloseable
    • getPointer

      protected long getPointer()