seaweedfs/weed/storage/needle_map/needle_value_map.go

13 lines
319 B
Go
Raw Normal View History

2019-04-19 12:43:36 +08:00
package needle_map
2017-05-27 13:51:25 +08:00
import (
. "github.com/chrislusf/seaweedfs/weed/storage/types"
)
2017-05-27 13:51:25 +08:00
type NeedleValueMap interface {
Set(key NeedleId, offset Offset, size Size) (oldOffset Offset, oldSize Size)
Delete(key NeedleId) Size
Get(key NeedleId) (*NeedleValue, bool)
AscendingVisit(visit func(NeedleValue) error) error
2017-05-27 13:51:25 +08:00
}