dofns

package
v0.0.0-...-223fbb0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropKeyFn

type DropKeyFn struct {
	XType beam.EncodedType
	YType beam.EncodedType
}

func NewDropKeyFn

func NewDropKeyFn(keyType reflect.Type, valueType reflect.Type) *DropKeyFn

func (*DropKeyFn) ProcessElement

func (fn *DropKeyFn) ProcessElement(_ context.Context, _ beam.X, value beam.Y, emit func(beam.Y))

type ExtractKeyFn

type ExtractKeyFn struct {
	KeyField string
	Type     beam.EncodedType
}

func NewExtractKeyFn

func NewExtractKeyFn(keyField string, elemType reflect.Type) *ExtractKeyFn

func (*ExtractKeyFn) ProcessElement

func (fn *ExtractKeyFn) ProcessElement(
	_ context.Context,
	elem beam.X,
	emit func(string, beam.X),
) error

Jump to

Keyboard shortcuts

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