ORCOptions#
- public class ORCOptions extends ColumnFilterOptions#
Options for reading a ORC file.
Field Summary
Method Summary
Static Fields
- public static ORCOptions DEFAULT#
- public static class Builder extends ColumnFilterOptions.Builder<Builder>#
Method Summary
Specify decimal columns which shall be read as DECIMAL128.
Specify whether the parser should implicitly promote TIMESTAMP_DAYS columns to TIMESTAMP_MILLISECONDS for compatibility with NumPy.
Specify the time unit to use when returning timestamps.
Methods inherited from class
ai.rapids.cudf.ColumnFilterOptions.Builder:includeColumnMethods
- 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 ORCOptions build()#