piotr-kalanski / sparkschema2class

Generate Scala case class based on Spark DataFrame schema

GitHub

sparkschema2class

Scala case class generator based on Spark DataFrame schema

Build Status codecov.io Stories in Ready License

Table of contents

Goals

  • Generate Scala case class based on Spark DataFrame schema

Getting started

Include dependencies

"com.github.piotr-kalanski" % "sparkschema2class_2.11" % "0.1.0"

or

<dependency>
    <groupId>com.github.piotr-kalanski</groupId>
    <artifactId>sparkschema2class_2.11</artifactId>
    <version>0.1.0</version>
</dependency>

Examples