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_PRECISIONMethods inherited from class
ai.rapids.cudf.ColumnWriterOptions:getChildColumnOptions,getColumnName,getFlatBooleans,getFlatColumnNames,getFlatInts,getParquetFieldId,getPrecision,hasParquetFieldId,isBinary,isNullable,isTimestampTypeInt96,listBuilder,mapColumn,structBuilderMethods inherited from class
ai.rapids.cudf.CompressionMetadataWriterOptions:getCompressionType,getMetadata,getTopLevelChildren- public static class Builder extends CompressionMetadataWriterOptions.Builder <Builder, ORCWriterOptions>#
Method Summary
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,withMetadataMethods
- 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– ifwriterTimezoneis null or empty
- public ORCWriterOptions build()#