Class TableWriter

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

public abstract class TableWriter extends Object implements AutoCloseable
Provides an interface for writing out Table information in multiple steps. A TableWriter will be returned from one of various factory functions in the Table class that let you set the format of the data and its destination. After that write can be called one or more times. When you are done writing call close to finish.
  • Field Details

    • writerHandle

      protected long writerHandle
  • Method Details

    • write

      public abstract void write(Table table) throws CudfException
      Write out a table. Note that all columns must be in the same order each time this is called and the format of each table cannot change.
      Parameters:
      table - what to write out.
      Throws:
      CudfException
    • close

      public abstract void close() throws CudfException
      Specified by:
      close in interface AutoCloseable
      Throws:
      CudfException
    • getWriteStatistics

      public TableWriter.WriteStatistics getWriteStatistics()
      Get the write statistics for the writer up to the last write call. Currently, only ORC and Parquet writers support write statistics. Calling this method on other writers will return null.
      Returns:
      The write statistics.