add the Value method for Modify type (#133)

This commit is contained in:
LittleDriver 2020-03-23 10:54:18 +09:00 committed by Connor
parent 8aa0fa7768
commit 096240d32f

View File

@ -26,6 +26,14 @@ func (m *Modify) Key() []byte {
return nil
}
func (m *Modify) Value() []byte {
if putData, ok := m.Data.(Put); ok {
return putData.Value
}
return nil
}
func (m *Modify) Cf() string {
switch m.Data.(type) {
case Put: