grouzen / zio-apache-arrow

ZIO-powered Apache Arrow library
https://mnedokushev.me/zio-apache-arrow/
Apache License 2.0
8 stars 1 forks source link
arrow datafusion scala zio

Build status Sonatype Nexus (Releases) Sonatype Nexus (Snapshots) Scala Steward badge

ZIO Apache Arrow

ZIO based wrapper for Apache Arrow Java Implementation that leverages ZIO Schema library to derive codecs for ValueVector and VectorSchemaRoot

Overview

Installation

libraryDependencies += "me.mnedokushev" %% "zio-apache-arrow-core" % "@VERSION@"

Codecs

val codec = ValueVectorCodec[Int, IntVector]

ZIO.scoped(
  for {
    vec <- codec.encodeZIO(Chunk(1, 2, 3))
    result <- codec.decodeZIO(vec)
  } yield result
)