krapsh-0.1.6.1: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Internal.TypesStructures

Description

The structures of data types in Krapsh.

For a detailed description of the supported types, see http:/spark.apache.orgdocslatestsql-programming-guide.html#data-types

At a high-level, Spark DataFrames and Datasets are equivalent to lists of objects whose type can be mapped to the same StructType: Dataset a ~ ArrayType StructType (...) Columns of a dataset are equivalent to lists of object whose type can be mapped to the same DataType (either Strict or Nullable) Local data (or "blobs") are single elements whose type can be mapped to a DataType (either strict or nullable)

Synopsis

Documentation

data DataType Source #

All the data types supported by the Spark engine. The data types can either be nullable (they may contain null values) or strict (all the values are present). There are a couple of differences with the algebraic data types in Haskell: Maybe (Maybe a) ~ Maybe a which implies that arbitrary nesting of values will be flattened to a top-level Nullable Similarly, [[]] ~ []

data Nullable Source #

Represents the choice between a strict and a nullable field

Constructors

CanNull 
NoNull 

data NullableDataType Source #

Encodes the type of all the nullable data types

data SQLType a Source #

A tagged datatype that encodes the sql types This is the main type information that should be used by users.

Constructors

SQLType 

Fields

Instances

Eq (SQLType a) Source # 

Methods

(==) :: SQLType a -> SQLType a -> Bool #

(/=) :: SQLType a -> SQLType a -> Bool #

Show (SQLType a) Source # 

Methods

showsPrec :: Int -> SQLType a -> ShowS #

show :: SQLType a -> String #

showList :: [SQLType a] -> ShowS #

Generic (SQLType a) Source # 

Associated Types

type Rep (SQLType a) :: * -> * #

Methods

from :: SQLType a -> Rep (SQLType a) x #

to :: Rep (SQLType a) x -> SQLType a #

type Rep (SQLType a) Source # 
type Rep (SQLType a) = D1 (MetaData "SQLType" "Spark.Core.Internal.TypesStructures" "krapsh-0.1.6.1-24YumfFSIoWDNUVRZjuyVp" False) (C1 (MetaCons "SQLType" PrefixI True) (S1 (MetaSel (Just Symbol "unSQLType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DataType)))