karps-0.2.0.0: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Internal.Arithmetics

Synopsis

Documentation

class GeneralizedHomo2 x1 x2 Source #

The class of types that can be lifted to operations onto Karps types.

This is the class for operations on homogeneous types (the inputs and the output have the same underlying type).

At its core, it takes a broadcasted operation that works on columns, and makes that operation available on other shapes.

Instances

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

Methods

_projectHomo :: Column ref x -> Column ref x -> HomoColOp2 -> GeneralizedHomoReturn (Column ref x) (Column ref x)

type HomoColOp2 = UntypedColumnData -> UntypedColumnData -> UntypedColumnData Source #

Developer API

performOp :: GeneralizedHomo2 x1 x2 => HomoColOp2 -> x1 -> x2 -> GeneralizedHomoReturn x1 x2 Source #

Performs an operation, using a reference operation defined on columns.