ProductParquetCellConverter

com.phasmidsoftware.tableparser.parquet.ProductParquetCellConverter
class ProductParquetCellConverter[T](fieldNames: List[String], converters: List[ParquetCellConverter[_]], construct: Seq[Any] => T)(using helper: ColumnHelper[T]) extends ParquetCellConverter[T]

The ParquetCellConverter of a case class T, as derived by ParquetCellConverter.derived.

Type parameters

T

the type of the result.

Value parameters

construct

a function to construct a T from the values of its fields.

converters

the ParquetCellConverters of the fields of T, in the same order.

fieldNames

the names of the fields of T, in declaration order.

helper

the ColumnHelper[T] which maps field names to column names.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def columns(field: String, columnName: String): Seq[ParquetColumn]

The Parquet columns which this converter reads (used to validate the schema before any rows are read). By default, it reads just the one column, of any supported type.

The Parquet columns which this converter reads (used to validate the schema before any rows are read). By default, it reads just the one column, of any supported type.

Value parameters

columnName

the name of the Parquet column.

field

the name of the parameter (for error messages).

Attributes

Returns

the columns which this converter reads.

Definition Classes
def convert(group: SimpleGroup, fieldName: String): Try[T]

Method to convert a row (or part of a row) into a T.

Method to convert a row (or part of a row) into a T.

Value parameters

fieldName

ignored: each field of T is read from its own column.

group

the SimpleGroup representing one Parquet row.

Attributes

Returns

a Try[T].