karps-0.2.0.0: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Internal.CanRename

Description

Defines the notion of renaming something.

This is closed over a few well-defined types.

Synopsis

Documentation

class CanRename a txt where Source #

The class of types that can be renamed. It is made generic because it covers 2 notions: - the name of a compute node that will eventually determine its compute path - the name of field (which may become an object path) This syntax tries to be convenient and will fail immediately for basic errors such as illegal characters.

This could be revisited in the future, but it is a compromise on readability.

Minimal complete definition

(@@)

Methods

(@@) :: a -> txt -> a infixl 1 Source #

Instances

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

Methods

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

CanRename DynColumn FieldName Source # 
(~) * s String => CanRename (Try (ComputeNode loc a)) s Source # 

Methods

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

(~) * s String => CanRename (ComputeNode loc a) s Source # 

Methods

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

(~) * s String => CanRename (Column ref a) s Source # 

Methods

(@@) :: Column ref a -> s -> Column ref a Source #