karps-0.2.0.0: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Try

Description

Useful classes and functions to deal with failures within the Karps framework.

This is a developer API. Users should not have to invoke functions from this module.

Synopsis

Documentation

data NodeError Source #

An error associated to a particular node (an observable or a dataset).

Constructors

Error 

Fields

Instances

Eq NodeError Source # 
Show NodeError Source # 
(~) * s String => CanRename DynColumn s Source # 

Methods

(@@) :: DynColumn -> s -> DynColumn Source #

CanRename DynColumn FieldName Source # 
Project DataFrame Text Source # 
Project DataFrame DynamicColProjection Source # 
Project DynColumn Text Source # 
Project DynColumn DynamicColProjection Source # 
GeneralizedHomo2 LocalFrame LocalFrame Source # 
GeneralizedHomo2 DynColumn DynColumn Source # 
Project DataFrame (StaticColProjection a b) Source # 
GeneralizedHomo2 LocalFrame (Column ref x) Source # 
GeneralizedHomo2 DynColumn (Column ref x) Source # 
(~) * s String => CanRename (Try (ComputeNode loc a)) s Source # 

Methods

(@@) :: Try (ComputeNode loc a) -> s -> Try (ComputeNode loc a) Source #

GeneralizedHomo2 (Column ref x) LocalFrame Source # 
GeneralizedHomo2 (Column ref x) DynColumn Source # 

type Try = Either NodeError Source #

The common result of attempting to build something.

tryError :: Text -> Try a Source #

Returns an error object given a text clue.

tryEither :: Either Text a -> Try a Source #

Returns an error object given a string clue. Remove this method tryError' :: String -> Try a tryError' = _error . T.pack

(internal) Given a potentially errored object, converts it to a Try.