2021-10-03 05:02:56 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package skiplist;
|
|
|
|
|
2022-07-29 15:17:28 +08:00
|
|
|
option go_package = "github.com/seaweedfs/seaweedfs/weed/util/skiplist";
|
2021-10-03 05:02:56 +08:00
|
|
|
|
|
|
|
message SkipListProto {
|
|
|
|
repeated SkipListElementReference start_levels = 1;
|
|
|
|
repeated SkipListElementReference end_levels = 2;
|
|
|
|
int32 max_new_level = 3;
|
|
|
|
int32 max_level = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SkipListElementReference {
|
|
|
|
int64 element_pointer = 1;
|
|
|
|
bytes key = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SkipListElement {
|
|
|
|
int64 id = 1;
|
|
|
|
repeated SkipListElementReference next = 2;
|
|
|
|
int32 level = 3;
|
2021-10-03 16:07:35 +08:00
|
|
|
bytes key = 4;
|
|
|
|
bytes value = 5;
|
|
|
|
SkipListElementReference prev = 6;
|
2021-10-03 05:02:56 +08:00
|
|
|
}
|
2021-10-04 08:54:25 +08:00
|
|
|
|
|
|
|
message NameBatchData {
|
|
|
|
repeated bytes names = 1;
|
2022-07-29 15:17:28 +08:00
|
|
|
}
|