| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Spark.Core.Row
- data Cell
- = Empty
- | IntElement !Int
- | DoubleElement !Double
- | StringElement !Text
- | BoolElement !Bool
- | RowArray !(Vector Cell)
- data Row = Row {}
- class ToSQL a
- class FromSQL a
- valueToCell :: ToSQL a => a -> Cell
- cellToValue :: FromSQL a => Cell -> Either Text a
- jsonToCell :: DataType -> Value -> Either Text Cell
- rowArray :: [Cell] -> Cell
Documentation
The basic representation of one row of data. This is a standard type that comes out of the SQL engine in Spark.
An element in a Row object. All objects manipulated by the Spark framework are assumed to be convertible to cells.
This is usually handled by generic transforms.
Constructors
| Empty | |
| IntElement !Int | |
| DoubleElement !Double | |
| StringElement !Text | |
| BoolElement !Bool | |
| RowArray !(Vector Cell) |
Instances
A Row of data: the basic data structure to transport information TODO rename to rowCells
Instances
| FromSQL Bool Source # | |
| FromSQL Double Source # | |
| FromSQL Int Source # | |
| FromSQL Text Source # | |
| FromSQL DataTypeRepr Source # | |
| FromSQL DataTypeElementRepr Source # | |
| FromSQL Cell Source # | |
| FromSQL a => FromSQL [a] Source # | |
| FromSQL a => FromSQL (Maybe a) Source # | |
| (FromSQL a1, FromSQL a2) => FromSQL (a1, a2) Source # | |
valueToCell :: ToSQL a => a -> Cell Source #