seaweedfs/weed/storage/needle_map/needle_value_map.go
2019-09-02 11:28:40 +01:00

13 lines
323 B
Go

package needle_map
import (
. "github.com/joeslay/seaweedfs/weed/storage/types"
)
type NeedleValueMap interface {
Set(key NeedleId, offset Offset, size uint32) (oldOffset Offset, oldSize uint32)
Delete(key NeedleId) uint32
Get(key NeedleId) (*NeedleValue, bool)
AscendingVisit(visit func(NeedleValue) error) error
}