(colID int64, d *types.Datum)
| 78 | } |
| 79 | |
| 80 | func (encoder *Encoder) appendColVal(colID int64, d *types.Datum) { |
| 81 | if colID > 255 { |
| 82 | encoder.flags |= rowFlagLarge |
| 83 | } |
| 84 | if d.IsNull() { |
| 85 | encoder.numNullCols++ |
| 86 | } else { |
| 87 | encoder.numNotNullCols++ |
| 88 | } |
| 89 | encoder.tempColIDs = append(encoder.tempColIDs, colID) |
| 90 | encoder.values = append(encoder.values, d) |
| 91 | } |
| 92 | |
| 93 | func (encoder *Encoder) reformatCols() (numCols, notNullIdx int) { |
| 94 | r := &encoder.row |