You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
319 B
12 lines
319 B
package needle_map
|
|
|
|
import (
|
|
. "github.com/chrislusf/seaweedfs/weed/storage/types"
|
|
)
|
|
|
|
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
|
|
}
|