TableWriter#

public abstract class TableWriter 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.

Subclassed by ai.rapids.cudf.ParquetTableWriter

Field Summary

Method Summary

close()

getWriteStatistics()

Get the write statistics for the writer up to the last write call.

write(Table table)

Write out a table.

Protected Fields

protected long writerHandle#

Methods

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.

public abstract void close() throws CudfException#
public 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.

public static class WriteStatistics#

Field Summary

Constructor Summary

Fields

public final long numCompressedBytes#
public final long numFailedBytes#
public final long numSkippedBytes#
public final double compressionRatio#

Constructors

public WriteStatistics(
long numCompressedBytes,
long numFailedBytes,
long numSkippedBytes,
double compressionRatio
)#