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
325 B

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