ColumnInstruction
A ColumnInstruction specifies the instructions for reading or writing a Parquet column.
Syntax
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 fully qualified name of an This is not the compression codec. Compression applies to the whole file and is set with the Deephaven provides these codecs in the
|
| codec_args optional | str | An implementation-specific argument string passed to the codec named by |
| use_dictionary optional | bool | Whether or not to use dictionary-based encoding for string columns. |
| unsigned_long_target optional | UnsignedLongTarget | The Deephaven type to read an unsigned 64-bit integer ( Options are:
For an explanation of how Deephaven maps |
Returns
A ColumnInstruction object that will give Deephaven instructions for handling a particular column.
Examples
In this example, we create a ColumnInstruction that maps the Parquet column PX to the Deephaven column X. It can be passed into read or write.
In this example, unsigned_long_target reads an unsigned 64-bit integer column as a long instead of the default java.math.BigInteger. The example requires a Parquet file with a UINT_64 column, which Deephaven does not write.
In this example, the ColumnInstruction stores a LocalDate column with the LocalDateCodec, using its compact, non-nullable representation.