ORCWriterOptions#

public class ORCWriterOptions extends CompressionMetadataWriterOptions#

This class represents settings for writing ORC files.

It includes meta data information that will be used by the ORC writer to write the file.

Method Summary

Fields inherited from class ai.rapids.cudf.ColumnWriterOptions: childColumnOptions, UNKNOWN_PRECISION

Methods inherited from class ai.rapids.cudf.ColumnWriterOptions: getChildColumnOptions, getColumnName, getFlatBooleans, getFlatColumnNames, getFlatInts, getParquetFieldId, getPrecision, hasParquetFieldId, isBinary, isNullable, isTimestampTypeInt96, listBuilder, mapColumn, structBuilder

Methods inherited from class ai.rapids.cudf.CompressionMetadataWriterOptions: getCompressionType, getMetadata, getTopLevelChildren

Methods

public int getStripeSizeRows()#
public String getWriterTimezone()#

Static Methods

public static Builder builder()#
public static class Builder extends CompressionMetadataWriterOptions.Builder <Builder, ORCWriterOptions>#

Method Summary

build()

withStripeSizeRows(int stripeSizeRows)

withWriterTimezone(String writerTimezone)

Sets the timezone that the written timestamps are relative to, recorded in the stripe footers.

Methods inherited from class ai.rapids.cudf.CompressionMetadataWriterOptions.Builder: withCompressionType, withMetadata

Methods

public Builder withStripeSizeRows(int stripeSizeRows)#
public Builder withWriterTimezone(String writerTimezone)#

Sets the timezone that the written timestamps are relative to, recorded in the stripe footers.

cuDF timestamps are UTC instants, so the default of “UTC” writes them unshifted. Set this to the timezone that gave the values their meaning to interoperate with writers that record a local timezone, such as Hive and Spark.

A non-UTC file is meant for a reader whose timezone matches; it does not round-trip through Table.readORC, which has no session timezone and returns the writer’s wall clock.

Parameters:

writerTimezone – timezone name, for example “America/Los_Angeles”

Throws:

IllegalArgumentException – if writerTimezone is null or empty

public ORCWriterOptions build()#