func (t *MemoryTable) UpdateRecord(ctx context.Context, h int64, oldData []types.Datum, newData []types.Datum, touched map[int]bool) error {
	t.mu.Lock()
	defer t.mu.Unlock()
	item := t.tree.Get(itemKey(h))
	if item == nil {
		return table.ErrRowNotFound
	}
	pair := item.(*itemPair)
	pair.data = newData
	return nil
}
// UpdateRecord implements table.Table UpdateRecord interface.
UpdateRecord implements table.Table UpdateRecord interface.
// UpdateRecord implements table . Table UpdateRecord interface .
func (t *MemoryTable) UpdateRecord(ctx context.Context, h int64, oldData []types.Datum, newData []types.Datum, touched map[int]bool) error {
	t.mu.Lock()
	defer t.mu.Unlock()
	item := t.tree.Get(itemKey(h))
	if item == nil {
		return table.ErrRowNotFound
	}
	pair := item.(*itemPair)
	pair.data = newData
	return nil
}
func ( t * MemoryTable ) UpdateRecord ( ctx context . Context , h int64 , oldData [ ] types . Datum , newData [ ] types . Datum , touched map [ int ] bool ) error { t . mu . Lock ( ) defer t . mu . Unlock ( ) item := t . tree . Get ( itemKey ( h ) ) if item == nil { return table . ErrRowNotFound } pair := item . ( * itemPair ) pair . data = newData return nil }
UpdateRecord implements table.Table UpdateRecord interface.
UpdateRecord implements table . Table UpdateRecord interface .