krapsh-0.1.6.1: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Row

Synopsis

Documentation

data Cell Source #

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.

Instances

data Row Source #

A Row of data: the basic data structure to transport information TODO rename to rowCells

Constructors

Row 

Fields

Instances

Eq Row Source # 

Methods

(==) :: Row -> Row -> Bool #

(/=) :: Row -> Row -> Bool #

Show Row Source # 

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

ToJSON Row Source #

Row

class ToSQL a Source #

Instances

ToSQL Int Source # 

Methods

_valueToCell :: Int -> Cell

ToSQL a => ToSQL (Maybe a) Source # 

Methods

_valueToCell :: Maybe a -> Cell

class FromSQL a Source #

Instances

FromSQL Int Source # 

Methods

_cellToValue :: Cell -> TryS Int

FromSQL Cell Source # 

Methods

_cellToValue :: Cell -> TryS Cell

FromSQL a => FromSQL [a] Source # 

Methods

_cellToValue :: Cell -> TryS [a]

FromSQL a => FromSQL (Maybe a) Source # 

Methods

_cellToValue :: Cell -> TryS (Maybe a)

jsonToCell :: DataType -> Value -> Either Text Cell Source #

Decodes a JSON into a row. This operation requires a SQL type that describes the schema.