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.

27 lines
600 B

  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. int64 element_count = 5;
  10. double eps = 7;
  11. }
  12. message SkipListElementReference {
  13. int64 element_pointer = 1;
  14. bytes key = 2;
  15. }
  16. message SkipListElement {
  17. int64 id = 1;
  18. repeated SkipListElementReference next = 2;
  19. int32 level = 3;
  20. repeated bytes values = 4;
  21. SkipListElementReference prev = 5;
  22. }