MCPcopy
hub / github.com/pingcap/tidb / NewChunkDecoder

Function NewChunkDecoder

pkg/util/rowcodec/decoder.go:195–204  ·  view source on GitHub ↗

NewChunkDecoder creates a NewChunkDecoder.

(columns []ColInfo, handleColIDs []int64, defDatum func(i int, chk *chunk.Chunk) error, loc *time.Location)

Source from the content-addressed store, hash-verified

193
194// NewChunkDecoder creates a NewChunkDecoder.
195func NewChunkDecoder(columns []ColInfo, handleColIDs []int64, defDatum func(i int, chk *chunk.Chunk) error, loc *time.Location) *ChunkDecoder {
196 return &ChunkDecoder{
197 decoder: decoder{
198 columns: columns,
199 handleColIDs: handleColIDs,
200 loc: loc,
201 },
202 defDatum: defDatum,
203 }
204}
205
206// DecodeToChunk decodes a row to chunk.
207func (decoder *ChunkDecoder) DecodeToChunk(rowData []byte, commitTS uint64, handle kv.Handle, chk *chunk.Chunk) error {

Callers 10

newRowDecoderFunction · 0.92
NewRowDecoderFunction · 0.92
TestDecodeRowWithHandleFunction · 0.92
TestEncodeKindNullDatumFunction · 0.92
TestTypesNewRowCodecFunction · 0.92
TestNilAndDefaultFunction · 0.92
TestOldRowCodecFunction · 0.92
TestDecodeWithCommitTSFunction · 0.92
BenchmarkDecodeFunction · 0.92

Calls

no outgoing calls

Tested by 8

TestDecodeRowWithHandleFunction · 0.74
TestEncodeKindNullDatumFunction · 0.74
TestTypesNewRowCodecFunction · 0.74
TestNilAndDefaultFunction · 0.74
TestOldRowCodecFunction · 0.74
TestDecodeWithCommitTSFunction · 0.74
BenchmarkDecodeFunction · 0.74