com.phasmidsoftware.tableparser.parquet
StandardParquetRowParser
Companion object StandardParquetRowParser
class StandardParquetRowParser[Row <: Product] extends ParquetRowParser[Row]
Standard implementation of ParquetRowParser. Uses reflection to identify case class parameters and ParquetCellConverter to extract typed values from each field.
Supports both flat primitive fields and grouped sub-case-class fields. A grouped field is any field whose type has an implicit ParquetCellConverter[T] provided in its companion object.
- Row
the target case class type, must be a Product (case class).
- Alphabetic
- By Inheritance
- StandardParquetRowParser
- ParquetRowParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StandardParquetRowParser(converters: Seq[(String, (SimpleGroup) => Try[Any])])(implicit arg0: ClassTag[Row])
- converters
a sequence of (columnName, converter) pairs, one per case class parameter, in declaration order. For grouped fields, columnName is the Scala field name (not a Parquet column name) and the converter delegates to the sub-case-class's ParquetCellConverter.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parse(schema: MessageType, helper: ColumnHelper[Row])(group: SimpleGroup): Try[Row]
Convert a SimpleGroup (one Parquet record) into a Try[Row].
Convert a SimpleGroup (one Parquet record) into a Try[Row].
- schema
the Parquet MessageType, used to look up field metadata.
- helper
the ColumnHelper providing parameter-to-column name mapping.
- group
the SimpleGroup representing one row.
- returns
a Try[Row].
- Definition Classes
- StandardParquetRowParser → ParquetRowParser
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)