Package ai.rapids.cudf
Class TableWriter
java.lang.Object
ai.rapids.cudf.TableWriter
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
Get the write statistics for the writer up to the last write call.abstract void
Write out a table.
-
Field Details
-
writerHandle
protected long writerHandle
-
-
Method Details
-
write
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
- Specified by:
close
in interfaceAutoCloseable
- Throws:
CudfException
-
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.
-