Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AttributeOrderExpr = AttributeOrderExpr AttributeName Order
- data AttributeOrder = AttributeOrder AttributeName Order
- data Order
- ascending :: Text
- descending :: Text
- arbitrary :: Text
- data DataFrame = DataFrame {
- orders :: [AttributeOrder]
- attributes :: Attributes
- tuples :: [DataFrameTuple]
- data DataFrameTuple = DataFrameTuple Attributes (Vector Atom)
- sortDataFrameBy :: [AttributeOrder] -> DataFrame -> Either RelationalError DataFrame
- sortTuplesBy :: (DataFrameTuple -> DataFrameTuple -> Ordering) -> [DataFrameTuple] -> [DataFrameTuple]
- compareTupleByAttributeOrders :: [AttributeOrder] -> DataFrameTuple -> DataFrameTuple -> Ordering
- compareTupleByOneAttributeName :: AttributeName -> DataFrameTuple -> DataFrameTuple -> Ordering
- atomForAttributeName :: AttributeName -> DataFrameTuple -> Either RelationalError Atom
- take' :: Integer -> DataFrame -> DataFrame
- drop' :: Integer -> DataFrame -> DataFrame
- toDataFrame :: Relation -> DataFrame
- fromDataFrame :: DataFrame -> Either RelationalError Relation
- showDataFrame :: DataFrame -> Text
- dataFrameAsTable :: DataFrame -> Table
- data DataFrameExpr = DataFrameExpr {}
- dataFrameAsHTML :: DataFrame -> Text
- tuplesAsHTML :: [DataFrameTuple] -> Text
- tupleAssocs :: DataFrameTuple -> [(AttributeName, Atom)]
- tupleAsHTML :: DataFrameTuple -> Text
- attributesAsHTML :: Attributes -> [AttributeOrder] -> Text
Documentation
data AttributeOrderExpr Source #
Instances
Generic AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame from :: AttributeOrderExpr -> Rep AttributeOrderExpr x Source # to :: Rep AttributeOrderExpr x -> AttributeOrderExpr Source # | |
Show AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame | |
Serialise AttributeOrderExpr Source # | |
Defined in ProjectM36.Serialise.DataFrame | |
type Rep AttributeOrderExpr Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrderExpr = D1 ('MetaData "AttributeOrderExpr" "ProjectM36.DataFrame" "project-m36-0.9.9-inplace" 'False) (C1 ('MetaCons "AttributeOrderExpr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Order))) |
data AttributeOrder Source #
Instances
Generic AttributeOrder Source # | |
Defined in ProjectM36.DataFrame from :: AttributeOrder -> Rep AttributeOrder x Source # to :: Rep AttributeOrder x -> AttributeOrder Source # | |
Show AttributeOrder Source # | |
Defined in ProjectM36.DataFrame | |
Serialise AttributeOrder Source # | |
Defined in ProjectM36.Serialise.DataFrame | |
type Rep AttributeOrder Source # | |
Defined in ProjectM36.DataFrame type Rep AttributeOrder = D1 ('MetaData "AttributeOrder" "ProjectM36.DataFrame" "project-m36-0.9.9-inplace" 'False) (C1 ('MetaCons "AttributeOrder" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AttributeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Order))) |
descending :: Text Source #
DataFrame | |
|
Instances
Generic DataFrame Source # | |
Show DataFrame Source # | |
Serialise DataFrame Source # | |
type Rep DataFrame Source # | |
Defined in ProjectM36.DataFrame type Rep DataFrame = D1 ('MetaData "DataFrame" "ProjectM36.DataFrame" "project-m36-0.9.9-inplace" 'False) (C1 ('MetaCons "DataFrame" 'PrefixI 'True) (S1 ('MetaSel ('Just "orders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AttributeOrder]) :*: (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attributes) :*: S1 ('MetaSel ('Just "tuples") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DataFrameTuple])))) |
data DataFrameTuple Source #
Instances
Generic DataFrameTuple Source # | |
Defined in ProjectM36.DataFrame from :: DataFrameTuple -> Rep DataFrameTuple x Source # to :: Rep DataFrameTuple x -> DataFrameTuple Source # | |
Show DataFrameTuple Source # | |
Defined in ProjectM36.DataFrame | |
Eq DataFrameTuple Source # | |
Defined in ProjectM36.DataFrame (==) :: DataFrameTuple -> DataFrameTuple -> Bool Source # (/=) :: DataFrameTuple -> DataFrameTuple -> Bool Source # | |
Serialise DataFrameTuple Source # | |
Defined in ProjectM36.Serialise.DataFrame | |
type Rep DataFrameTuple Source # | |
Defined in ProjectM36.DataFrame type Rep DataFrameTuple = D1 ('MetaData "DataFrameTuple" "ProjectM36.DataFrame" "project-m36-0.9.9-inplace" 'False) (C1 ('MetaCons "DataFrameTuple" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Attributes) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Atom)))) |
sortTuplesBy :: (DataFrameTuple -> DataFrameTuple -> Ordering) -> [DataFrameTuple] -> [DataFrameTuple] Source #
compareTupleByAttributeOrders :: [AttributeOrder] -> DataFrameTuple -> DataFrameTuple -> Ordering Source #
compareTupleByOneAttributeName :: AttributeName -> DataFrameTuple -> DataFrameTuple -> Ordering Source #
toDataFrame :: Relation -> DataFrame Source #
showDataFrame :: DataFrame -> Text Source #
dataFrameAsTable :: DataFrame -> Table Source #
data DataFrameExpr Source #
A Relation can be converted to a DataFrame for sorting, limits, and offsets.
DataFrameExpr | |
|
Instances
Generic DataFrameExpr Source # | |
Defined in ProjectM36.DataFrame from :: DataFrameExpr -> Rep DataFrameExpr x Source # to :: Rep DataFrameExpr x -> DataFrameExpr Source # | |
Show DataFrameExpr Source # | |
Defined in ProjectM36.DataFrame | |
Serialise DataFrameExpr Source # | |
type Rep DataFrameExpr Source # | |
Defined in ProjectM36.DataFrame type Rep DataFrameExpr = D1 ('MetaData "DataFrameExpr" "ProjectM36.DataFrame" "project-m36-0.9.9-inplace" 'False) (C1 ('MetaCons "DataFrameExpr" 'PrefixI 'True) ((S1 ('MetaSel ('Just "convertExpr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RelationalExpr) :*: S1 ('MetaSel ('Just "orderExprs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [AttributeOrderExpr])) :*: (S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))))) |
dataFrameAsHTML :: DataFrame -> Text Source #
tuplesAsHTML :: [DataFrameTuple] -> Text Source #
tupleAssocs :: DataFrameTuple -> [(AttributeName, Atom)] Source #
tupleAsHTML :: DataFrameTuple -> Text Source #
attributesAsHTML :: Attributes -> [AttributeOrder] -> Text Source #