skiplist.proto 616 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto3";
  2. package skiplist;
  3. option go_package = "github.com/chrislusf/seaweedfs/weed/util/skiplist";
  4. message SkipListProto {
  5. repeated SkipListElementReference start_levels = 1;
  6. repeated SkipListElementReference end_levels = 2;
  7. int32 max_new_level = 3;
  8. int32 max_level = 4;
  9. }
  10. message SkipListElementReference {
  11. int64 element_pointer = 1;
  12. bytes key = 2;
  13. }
  14. message SkipListElement {
  15. int64 id = 1;
  16. repeated SkipListElementReference next = 2;
  17. int32 level = 3;
  18. bytes key = 4;
  19. bytes value = 5;
  20. SkipListElementReference prev = 6;
  21. }
  22. message NameBatchData {
  23. repeated bytes names = 1;
  24. }