ORCOptions#

public class ORCOptions extends ColumnFilterOptions#

Options for reading a ORC file.

Field Summary

Method Summary

Static Fields

public static ORCOptions DEFAULT#

Static Methods

public static Builder builder()#
public static class Builder extends ColumnFilterOptions.Builder<Builder>#

Method Summary

build()

decimal128Column(String... names)

Specify decimal columns which shall be read as DECIMAL128.

ignoreTimezoneInStripeFooter()

withNumPyTypes(boolean useNumPyTypes)

Specify whether the parser should implicitly promote TIMESTAMP_DAYS columns to TIMESTAMP_MILLISECONDS for compatibility with NumPy.

withTimeUnit(DType unit)

Specify the time unit to use when returning timestamps.

Methods inherited from class ai.rapids.cudf.ColumnFilterOptions.Builder: includeColumn

Methods

public Builder withNumPyTypes(boolean useNumPyTypes)#

Specify whether the parser should implicitly promote TIMESTAMP_DAYS columns to TIMESTAMP_MILLISECONDS for compatibility with NumPy.

Parameters:

useNumPyTypes – true to request this conversion, false to avoid.

Returns:

builder for chaining

public ORCOptions.Builder withTimeUnit(DType unit)#

Specify the time unit to use when returning timestamps.

Parameters:

unit – default unit of time specified by the user

Returns:

builder for chaining

public Builder decimal128Column(String... names)#

Specify decimal columns which shall be read as DECIMAL128.

Otherwise, decimal columns will be read as DECIMAL64 by default in ORC.

In terms of child columns of nested types, their parents need to be prepended as prefix of the column name, in case of ambiguity. For struct columns, the names of child columns are formatted as {struct_col_name}.{child_col_name}. For list columns, the data(child) columns are named as {list_col_name}.1.

Parameters:

names – names of columns which read as DECIMAL128

Returns:

builder for chaining

public Builder ignoreTimezoneInStripeFooter()#
public ORCOptions build()#