ColumnInstruction
A ColumnInstruction specifies the instructions for reading or writing a Parquet column.
Syntax
ColumnInstruction(
column_name=None,
parquet_column_name=None,
codec_name=None,
codec_args=None,
use_dictionary=False,
) = ColumnInstruction
Parameters
| Parameter | Type | Description |
|---|---|---|
| column_name optional | str | The name of the column to apply these instructions to. |
| parquet_column_name optional | str | The name of the column in the resulting Parquet file. |
| codec_name optional | str | The compression codec to use. Options are:
|
| codec_args optional | str | An implementation-specific string used to map types to/from bytes. Typically used in cases where there is no obvious language-agnostic representation in Parquet. Default is |
| use_dictionary optional | bool | Whether or not to use dictionary-based encoding for string columns. |
Returns
A ColumnInstruction object that will give Deephaven instructions for handling a particular column.
Examples
In this example, we create a ColumnInstruction that can be passed into read or write.
from deephaven.parquet import ColumnInstruction
instruction = ColumnInstruction(
column_name="X",
parquet_column_name="X",
codec_name="GZIP",
codec_args=None,
use_dictionary=False,
)