util

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SerializedPartitionDataType indicates that serialized partition data is being transferred
	SerializedPartitionDataType = 1 << iota
)

Variables

This section is empty.

Functions

func CreateAsyncErrorChannel

func CreateAsyncErrorChannel() chan error

CreateAsyncErrorChannel produces a channel for errors

func FormatMultiError

func FormatMultiError(merrs []error) string

FormatMultiError formats multierrors for logging

func GetTrace

func GetTrace() string

GetTrace produces the string representation of a stack trace

func KeyColumns

func KeyColumns(colNames ...string) sif.KeyingOperation

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

func SafeFilterOperation

func SafeFilterOperation(filterOp sif.FilterOperation) (safeFilterOp sif.FilterOperation)

SafeFilterOperation wraps a FilterOperation such that panics are recovered and nice error messages are constructed

func SafeFlatMapOperation

func SafeFlatMapOperation(flatMapOp sif.FlatMapOperation) (safeFlatMapOp sif.FlatMapOperation)

SafeFlatMapOperation wraps a FlatMapOperation such that panics are recovered and nice error messages are constructed

func SafeKeyingOperation

func SafeKeyingOperation(keyingOp sif.KeyingOperation) (safeKeyingOp sif.KeyingOperation)

SafeKeyingOperation wraps a KeyingOperation such that panics are recovered and nice error messages are constructed

func SafeMapOperation

func SafeMapOperation(mapOp sif.MapOperation) (safeMapOp sif.MapOperation)

SafeMapOperation wraps a MapOperation such that panics are recovered and nice error messages are constructed

func SafeReductionOperation

func SafeReductionOperation(reductionOp sif.ReductionOperation) (safeReductionOp sif.ReductionOperation)

SafeReductionOperation wraps a ReductionOperation such that panics are recovered and nice error messages are constructed

func WaitAndFetchError

func WaitAndFetchError(wg *sync.WaitGroup, errors chan error) error

WaitAndFetchError attempts to fetch an error from an async goroutine

Types

This section is empty.

Jump to

Keyboard shortcuts

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