nullprinter

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NullPrintingStage = "null printing"
View Source
const PrintedNull = "NULL"

Variables

This section is empty.

Functions

This section is empty.

Types

type NullPrinter

type NullPrinter struct {
	Sch schema.Schema
	// contains filtered or unexported fields
}

NullPrinter is a utility to convert nil values in rows to a string representation.

func NewNullPrinter

func NewNullPrinter(sch schema.Schema) *NullPrinter

NewNullPrinter returns a new null printer for the schema given, which must be string-typed (untyped).

func NewNullPrinterWithNullString

func NewNullPrinterWithNullString(sch schema.Schema, nullStr string) *NullPrinter

NewNullPrinterWithNullString returns a new null printer for the schema given, which must be string-typed, using the string given as the value to print for nulls.

func (*NullPrinter) ProcessRow

func (np *NullPrinter) ProcessRow(inRow row.Row, props pipeline.ReadableMap) (rowData []*pipeline.TransformedRowResult, badRowDetails string)

Function to convert any nil values for a row with the schema given to a string representation. Used as the transform function in a NamedTransform.

Jump to

Keyboard shortcuts

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