parquet-haskell-0.1.0.0: src/Parquet/Types/RowGroup.hs
module Parquet.Types.RowGroup
( -- * Type definitions
RowGroup (..),
-- * Internal type definitions
SortingColumn (..),
)
where
------------------------------------------------------------------------------
import Parquet.Prelude
import Parquet.Types.ColumnChunk
import Pinch
------------------------------------------------------------------------------
data RowGroup = RowGroup
{ _RowGroup_column_chunks :: Field 1 [ColumnChunk],
_RowGroup_total_byte_size :: Field 2 Int64,
_RowGroup_num_rows :: Field 3 Int64,
_RowGroup_sorting_columns :: Field 4 (Maybe [SortingColumn]),
_RowGroup_file_offset :: Field 5 (Maybe Int64),
_RowGroup_total_compressed_size :: Field 6 (Maybe Int64),
_RowGroup_ordinal :: Field 7 (Maybe Int16)
}
deriving (Show, Eq, Generic, Binary, Pinchable)
------------------------------------------------------------------------------
data SortingColumn = SortingColumn
{ _SortingColumn_column_idx :: Field 1 Int32,
_SortingColumn_descending :: Field 2 Bool,
_SortingColumn_nulls_first :: Field 3 Bool
}
deriving (Show, Eq, Generic, Pinchable, Binary)