ParquetCellConverter

com.phasmidsoftware.tableparser.parquet.ParquetCellConverter
See theParquetCellConverter companion object

Type class for converting a field value from a Parquet SimpleGroup directly to a Scala type T, without going through String.

Type parameters

T

the target Scala type.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

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

Extract and convert the value of the named field from the given SimpleGroup.

Extract and convert the value of the named field from the given SimpleGroup.

Value parameters

fieldName

the Parquet column name (a converter for a case class ignores it, and reads its own columns).

group

the SimpleGroup representing one Parquet row.

Attributes

Returns

a Try[T].

Concrete methods

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.