decoder

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Info    *model.ColumnInfo
	GenExpr expression.Expression
}

Column contains the info and generated expr of column.

type RowDecoder

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

RowDecoder decodes a byte slice into datums and eval the generated column value.

func NewRowDecoder

func NewRowDecoder(cols []*table.Column, decodeColMap map[int64]Column) RowDecoder

NewRowDecoder returns a new RowDecoder.

func (RowDecoder) DecodeAndEvalRowWithMap

func (rd RowDecoder) DecodeAndEvalRowWithMap(ctx sessionctx.Context, b []byte, decodeLoc, sysLoc *time.Location, row map[int64]types.Datum) (map[int64]types.Datum, error)

DecodeAndEvalRowWithMap decodes a byte slice into datums and evaluates the generated column value.

Jump to

Keyboard shortcuts

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