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 ¶
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.
Click to show internal directories.
Click to hide internal directories.