Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Col *table.Column 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(tbl table.Table, decodeColMap map[int64]Column) *RowDecoder
NewRowDecoder returns a new RowDecoder.
func (*RowDecoder) DecodeAndEvalRowWithMap ¶
func (rd *RowDecoder) DecodeAndEvalRowWithMap(ctx sessionctx.Context, handle int64, 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.
Click to show internal directories.
Click to hide internal directories.