dataframe-0.7.0.0: A fast, safe, and intuitive DataFrame library.
Safe HaskellNone
LanguageHaskell2010

DataFrame.IO.Parquet.Levels

Synopsis

Documentation

stitchNullable :: Int -> [Int] -> [a] -> [Maybe a] Source #

data SNode Source #

Constructors

SNode 

Instances

Instances details
Show SNode Source # 
Instance details

Defined in DataFrame.IO.Parquet.Levels

Methods

showsPrec :: Int -> SNode -> ShowS #

show :: SNode -> String #

showList :: [SNode] -> ShowS #

Eq SNode Source # 
Instance details

Defined in DataFrame.IO.Parquet.Levels

Methods

(==) :: SNode -> SNode -> Bool #

(/=) :: SNode -> SNode -> Bool #

pairWithVals :: Int -> [(Int, Int)] -> [a] -> [(Int, Int, Maybe a)] Source #

Tag leaf values as Just/Nothing according to maxDef.

splitAtRepBound :: Int -> [(Int, Int, Maybe a)] -> [[(Int, Int, Maybe a)]] Source #

Split triplets into groups; a new group begins whenever rep <= bound.

stitchList :: Int -> [Int] -> [Int] -> [a] -> [Maybe [Maybe a]] Source #

Reconstruct a list column from Dremel encoding levels. rep=0 starts a new top-level row; def=0 means the entire list slot is null. Returns one Maybe [Maybe a] per row.

stitchList2 :: Int -> Int -> [Int] -> [Int] -> [a] -> [Maybe [Maybe [Maybe a]]] Source #

Reconstruct a 2-level nested list (maxRep=2) from Dremel triplets. defT1: def threshold at which the depth-1 element is present (not null). maxDef: def threshold at which the leaf is present.

stitchList3 :: Int -> Int -> Int -> [Int] -> [Int] -> [a] -> [Maybe [Maybe [Maybe [Maybe a]]]] Source #

Reconstruct a 3-level nested list (maxRep=3) from Dremel triplets. defT1, defT2: def thresholds at which depth-1 and depth-2 elements are present. maxDef: def threshold at which the leaf is present.