| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.Lazy.Internal.LogicalPlan
Synopsis
- data DataSource
- data SortOrder
- data LogicalPlan
- = Scan DataSource Schema
- | Project [Text] LogicalPlan
- | Filter (Expr Bool) LogicalPlan
- | Derive Text UExpr LogicalPlan
- | Join JoinType Text Text LogicalPlan LogicalPlan
- | Aggregate [Text] [(Text, UExpr)] LogicalPlan
- | Sort [(Text, SortOrder)] LogicalPlan
- | Limit Int LogicalPlan
- | SourceDF DataFrame
Documentation
data DataSource Source #
Data source for a scan node.
Constructors
| CsvSource FilePath Char | path, separator |
| ParquetSource FilePath |
Instances
| Show DataSource Source # | |
Defined in DataFrame.Lazy.Internal.LogicalPlan Methods showsPrec :: Int -> DataSource -> ShowS # show :: DataSource -> String # showList :: [DataSource] -> ShowS # | |
Sort direction used in Sort nodes and the public API.
Constructors
| Ascending | |
| Descending |
Instances
| Show SortOrder Source # | |
| Eq SortOrder Source # | |
| Ord SortOrder Source # | |
Defined in DataFrame.Lazy.Internal.LogicalPlan | |
data LogicalPlan Source #
Relational-algebra tree that represents what the query computes. No physical decisions (batch size, join strategy) are made here.
Constructors
| Scan DataSource Schema | Read columns described by the schema from a source. |
| Project [Text] LogicalPlan | Retain only the listed columns. |
| Filter (Expr Bool) LogicalPlan | Keep rows matching the predicate. |
| Derive Text UExpr LogicalPlan | Add or overwrite a column via an expression. |
| Join JoinType Text Text LogicalPlan LogicalPlan | Join two sub-plans on the given key columns. |
| Aggregate [Text] [(Text, UExpr)] LogicalPlan | Group then aggregate. |
| Sort [(Text, SortOrder)] LogicalPlan | Sort by a list of (column, direction) pairs. |
| Limit Int LogicalPlan | Retain at most N rows. |
| SourceDF DataFrame | Lift an already-loaded DataFrame into the lazy plan. |
Instances
| Show LogicalPlan Source # | |
Defined in DataFrame.Lazy.Internal.LogicalPlan Methods showsPrec :: Int -> LogicalPlan -> ShowS # show :: LogicalPlan -> String # showList :: [LogicalPlan] -> ShowS # | |