seaweedfs/weed/storage/needle/needle_value_map.go

13 lines
312 B
Go
Raw Normal View History

2017-05-27 05:51:25 +00:00
package needle
import (
. "github.com/chrislusf/seaweedfs/weed/storage/types"
)
2017-05-27 05:51:25 +00:00
type NeedleValueMap interface {
Set(key NeedleId, offset Offset, size uint32) (oldOffset Offset, oldSize uint32)
Delete(key NeedleId) uint32
Get(key NeedleId) (*NeedleValue, bool)
2017-05-27 05:51:25 +00:00
Visit(visit func(NeedleValue) error) error
}