filter

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Filter(types.Record) (types.Record, error)
}

Filter provides way to filter record by record.

func NewFilter

func NewFilter(log *logrus.Entry, filterType string, aParam []string, mParam map[string]string) (Filter, error)

NewFilter analyze the config map and return object implemnting Filter of the asked type.

type OnlyFilter

type OnlyFilter struct {
	// contains filtered or unexported fields
}

OnlyFilter specific type for Only filter operation.

func (*OnlyFilter) Filter

func (of *OnlyFilter) Filter(in types.Record) (types.Record, error)

Filter : Only the content of column by provided values (insert the column if not present).

type ReplaceFilter

type ReplaceFilter struct {
	// contains filtered or unexported fields
}

ReplaceFilter specific type for replace filter operation.

func (*ReplaceFilter) Filter

func (rf *ReplaceFilter) Filter(in types.Record) (types.Record, error)

Filter : replace the content of column by provided values (insert the column if not present).

type SedFilter added in v1.3.0

type SedFilter struct {
	// contains filtered or unexported fields
}

SedFilter specific type for sed filter operation.

func (*SedFilter) Filter added in v1.3.0

func (sf *SedFilter) Filter(in types.Record) (types.Record, error)

Filter : Sed the content of column by provided values (insert the column if not present).

Jump to

Keyboard shortcuts

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