transform

package
v0.0.0-...-79c606f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package transform provides Operations which transform DataFrame rows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddColumn

func AddColumn(accessor sif.ColumnAccessor) *sif.DataFrameOperation

AddColumn declares that a new (empty) column with a specific type and name should be available to the next Task of the DataFrame pipeline

func Filter

Filter filters Rows out of a Partition, creating a new one. Rows are retained iff FilterOperation returns true.

func FlatMap

FlatMap transforms a Row, potentially producing new rows

func Group

Group shuffles rows across workers, using a key - useful for grouping buckets of data together on single workers

func KeyColumns

func KeyColumns(accessors ...sif.ColumnAccessor) sif.KeyingOperation

KeyColumns is a shortcut for defining a KeyingOperation which uses multiple source column values to produce a compound key.

func Map

Map transforms a Row in-place

func Reduce

Reduce combines rows across workers, using a key

func RemoveColumn

func RemoveColumn(accessors ...sif.ColumnAccessor) *sif.DataFrameOperation

RemoveColumn marks existing columns for removal at the end of the current stage

func RenameColumn

func RenameColumn(accessor sif.ColumnAccessor, newAccessor sif.ColumnAccessor) *sif.DataFrameOperation

RenameColumn renames an existing column

func Repartition

func Repartition(targetPartitionSize int, kfn sif.KeyingOperation) *sif.DataFrameOperation

Repartition is identical to Group, with the added ability to change the number of rows per partition during the shuffle

func RepartitionReduce

func RepartitionReduce(targetPartitionSize int, kfn sif.KeyingOperation, fn sif.ReductionOperation) *sif.DataFrameOperation

RepartitionReduce is identical to Reduce, with the added ability to change the number of rows per partition during the reduction

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL