Skip to content

Commit

Permalink
feat(format): add segment for info in protobuf definiton (#618)
Browse files Browse the repository at this point in the history
* feat(format): add  segment for info in protobuf definiton

Signed-off-by: acezen <[email protected]>

* Reset that vertices and edges are the paths to vertex info and edge info

Signed-off-by: acezen <[email protected]>

* Update

---------

Signed-off-by: acezen <[email protected]>
  • Loading branch information
acezen authored Sep 4, 2024
1 parent a5c94a4 commit cc57c56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions format/edge_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ message EdgeInfo {
int64 num_destination_vertices = 3;
}
optional Statistics statistics = 11;
string version = 12;
};
8 changes: 3 additions & 5 deletions format/graph_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ option java_multiple_files = true;
option java_package = "org.apache.graphar.proto";
option go_package = "./graphar";

import "vertex_info.proto";
import "edge_info.proto";

message GraphInfo {
string name = 1;
repeated VertexInfo vertices = 2;
repeated EdgeInfo edges = 3;
repeated string vertices = 2;
repeated string edges = 3;
string prefix = 4;

// Statistics of the graph, including the number of vertices and edges
Expand All @@ -45,4 +42,5 @@ message GraphInfo {
string value = 2;
}
repeated KeyValue key_value_metadata = 6;
string version = 7;
};
1 change: 1 addition & 0 deletions format/vertex_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ message VertexInfo {
int64 num_chunks = 2;
}
optional Statistics statistics = 5;
string version = 6;
};

0 comments on commit cc57c56

Please sign in to comment.