Skip to content

Commit

Permalink
fix getting name(aka sortValues) form edge id
Browse files Browse the repository at this point in the history
  • Loading branch information
Thespica committed Oct 3, 2024
1 parent 5b8570f commit 0c25411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public String name() {
E.checkState(idParts.length == 5 || idParts.length == 6,
"The edge id must be formatted by 5~6 parts, " +
"actual is %s", idParts.length);
// TODO(Thespica): how to get the name of the edge?
this.name = idParts[2];
this.name = idParts[idParts.length - 2];
}
return this.name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class EdgeLabel extends SchemaLabel {
private String parentLabel;
@JsonProperty("frequency")
private Frequency frequency;
// TODO(@Thespica): remove unused documented code
// @JsonProperty("source_label")
// private String sourceLabel;
// @JsonProperty("target_label")
Expand Down

0 comments on commit 0c25411

Please sign in to comment.