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

DataFrame.IO.Parquet.Dictionary

Synopsis

Documentation

stitchForRepBool :: Int -> Int -> [Int] -> [Int] -> [Bool] -> Column Source #

Dispatch to the right multi-level list stitching function. For maxRep=1 uses stitchList; for 23 uses stitchList23 with computed thresholds. Threshold formula: defT_r = maxDef - 2*(maxRep - r).

stitchForRepInt32 :: Int -> Int -> [Int] -> [Int] -> [Int32] -> Column Source #

stitchForRepInt64 :: Int -> Int -> [Int] -> [Int] -> [Int64] -> Column Source #

stitchForRepFloat :: Int -> Int -> [Int] -> [Int] -> [Float] -> Column Source #

stitchForRepText :: Int -> Int -> [Int] -> [Int] -> [Text] -> Column Source #

applyDictToColumn :: (Columnable a, Columnable (Maybe a)) => Vector a -> Vector Int -> Int -> [Int] -> IO Column Source #

Build a Column from a dictionary + index vector + def levels in a single mutable-vector pass, avoiding the intermediate [a] and [Maybe a] lists. For maxRep > 0 (list columns) the caller must use the rep-stitching path instead.