parquet-hs-0.1.0.0: Streaming Parquet reader

Safe HaskellNone
LanguageHaskell2010

Parquet.Reader

Synopsis

Documentation

newtype ParquetSource m Source #

Constructors

ParquetSource (Integer -> ConduitT () ByteString m ()) 

sourceRowGroup :: forall m. (MonadResource m, MonadIO m, MonadThrow m, MonadLogger m) => ParquetSource m -> FileMetadata -> RowGroup -> ConduitT () ParquetObject m () Source #

Streams the values for every column chunk and zips them into records.

Illustration:

_____________________ | col1 | col2 | col3 | | 1 | a | x | | 2 | b | y | | 3 | c | z | |____|__|____|

sourceRowGroup yields the following values in a stream:

(1, a, x) (2, b, y) (3, c, z)