Object

com.github.mjakubowski84.parquet4s

ParquetStreams

Related Doc: package parquet4s

Permalink

object ParquetStreams

Holds factory of Akka Streams sources and sinks that allow reading from and writing to Parquet files.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParquetStreams
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fromParquet[T](path: String, options: Options = ParquetReader.Options())(implicit arg0: ParquetRecordDecoder[T]): Source[T, NotUsed]

    Permalink

    Creates a akka.stream.scaladsl.Source that reads Parquet data from the specified path.

    Creates a akka.stream.scaladsl.Source that reads Parquet data from the specified path. If there are multiple files at path then the order in which files are loaded is determined by underlying filesystem.
    Path can refer to local file, HDFS, AWS S3, Google Storage, Azure, etc. Please refer to Hadoop client documentation or your data provider in order to know how to configure the connection.

    T

    type of data that represent the schema of the Parquet data, e.g.:

    case class MyData(id: Long, name: String, created: java.sql.Timestamp)
    path

    URI to Parquet files, e.g.:

    "file:///data/users"
    returns

    The source of Parquet data

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toParquetParallelUnordered[T](path: String, parallelism: Int, options: Options = ParquetWriter.Options())(implicit arg0: ParquetRecordEncoder[T], arg1: ParquetSchemaResolver[T]): Sink[T, Future[Done]]

    Permalink

    Creates a akka.stream.scaladsl.Sink that writes Parquet data to files at the specified path.

    Creates a akka.stream.scaladsl.Sink that writes Parquet data to files at the specified path. Sink splits files into number of pieces equal to parallelism. Files are written in parallel. Data is written in unordered way.


    Path can refer to local file, HDFS, AWS S3, Google Storage, Azure, etc. Please refer to Hadoop client documentation or your data provider in order to know how to configure the connection.

    T

    type of data that represent the schema of the Parquet data, e.g.:

    case class MyData(id: Long, name: String, created: java.sql.Timestamp)
    path

    URI to Parquet files, e.g.:

    "file:///data/users"
    parallelism

    defines how many files are created and how many parallel threads are responsible for it

    options

    set of options that define how Parquet files will be created

    returns

    The sink that writes Parquet files

  18. def toParquetSequentialWithFileSplit[T](path: String, maxRecordsPerFile: Long, options: Options = ParquetWriter.Options())(implicit arg0: ParquetRecordEncoder[T], arg1: ParquetSchemaResolver[T]): Sink[T, Future[Done]]

    Permalink

    Creates a akka.stream.scaladsl.Sink that writes Parquet data to files at the specified path.

    Creates a akka.stream.scaladsl.Sink that writes Parquet data to files at the specified path. Sink splits files sequentially into pieces. Each file contains maximal number of records according to maxRecordsPerFile. It is recommended to define maxRecordsPerFile as a multiple of com.github.mjakubowski84.parquet4s.ParquetWriter.Options.rowGroupSize.


    Path can refer to local file, HDFS, AWS S3, Google Storage, Azure, etc. Please refer to Hadoop client documentation or your data provider in order to know how to configure the connection.

    T

    type of data that represent the schema of the Parquet data, e.g.:

    case class MyData(id: Long, name: String, created: java.sql.Timestamp)
    path

    URI to Parquet files, e.g.:

    "file:///data/users"
    maxRecordsPerFile

    the maximum size of file

    options

    set of options that define how Parquet files will be created

    returns

    The sink that writes Parquet files

  19. def toParquetSingleFile[T](path: String, options: Options = ParquetWriter.Options())(implicit arg0: ParquetRecordEncoder[T], arg1: ParquetSchemaResolver[T]): Sink[T, Future[Done]]

    Permalink

    Creates a akka.stream.scaladsl.Sink that writes Parquet data to single file at the specified path (including file name).

    Creates a akka.stream.scaladsl.Sink that writes Parquet data to single file at the specified path (including file name).
    Path can refer to local file, HDFS, AWS S3, Google Storage, Azure, etc. Please refer to Hadoop client documentation or your data provider in order to know how to configure the connection.

    T

    type of data that represent the schema of the Parquet data, e.g.:

    case class MyData(id: Long, name: String, created: java.sql.Timestamp)
    path

    URI to Parquet files, e.g.:

    "file:///data/users/users-2019-01-01.parquet"
    options

    set of options that define how Parquet files will be created

    returns

    The sink that writes Parquet file

  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped