mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
13 lines
325 B
Go
13 lines
325 B
Go
package needle_map
|
|
|
|
import (
|
|
. "github.com/chrislusf/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
|
|
}
|