krapsh-0.1.6.1: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.StructuresInternal

Synopsis

Documentation

newtype NodePath Source #

The user-defined path of the node in the hierarchical representation of the graph.

Constructors

NodePath 

newtype NodeId Source #

The unique ID of a node. It is based on the parents of the node and all the relevant intrinsic values of the node.

Constructors

NodeId 

Fields

Instances

Eq NodeId Source # 

Methods

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

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

Ord NodeId Source # 
Show NodeId Source # 
Generic NodeId Source # 

Associated Types

type Rep NodeId :: * -> * #

Methods

from :: NodeId -> Rep NodeId x #

to :: Rep NodeId x -> NodeId #

Hashable NodeId Source # 

Methods

hashWithSalt :: Int -> NodeId -> Int #

hash :: NodeId -> Int #

type Rep NodeId Source # 
type Rep NodeId = D1 (MetaData "NodeId" "Spark.Core.StructuresInternal" "krapsh-0.1.6.1-24YumfFSIoWDNUVRZjuyVp" True) (C1 (MetaCons "NodeId" PrefixI True) (S1 (MetaSel (Just Symbol "unNodeId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))

newtype FieldName Source #

The name of a field in a sql structure This structure ensures that proper escaping happens if required. TODO: prevent the constructor from being used, it should be checked first.

Constructors

FieldName 

Fields

newtype FieldPath Source #

A path to a nested field an a sql structure. This structure ensures that proper escaping happens if required.

Constructors

FieldPath 

catNodePath :: NodePath -> Text Source #

The concatenated path. This is the inverse function of fieldPath.

fieldName :: Text -> Either String FieldName Source #

A safe constructor for field names that fixes all the issues relevant to SQL escaping TODO: proper implementation

unsafeFieldName :: HasCallStack => Text -> FieldName Source #

Constructs the field name, but will fail if the content is not correct.

fieldPath :: Text -> Either String FieldPath Source #

A safe constructor for field names that fixes all the issues relevant to SQL escaping TODO: proper implementation