needle_value_map.go 319 B

123456789101112
  1. package needle_map
  2. import (
  3. . "github.com/seaweedfs/seaweedfs/weed/storage/types"
  4. )
  5. type NeedleValueMap interface {
  6. Set(key NeedleId, offset Offset, size Size) (oldOffset Offset, oldSize Size)
  7. Delete(key NeedleId) Size
  8. Get(key NeedleId) (*NeedleValue, bool)
  9. AscendingVisit(visit func(NeedleValue) error) error
  10. }