Skip to content

Commit

Permalink
Update Info
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed Dec 24, 2022
1 parent 9c586e5 commit 0e0a345
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions include/gar/graph_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ class VertexInfo {
return Status::KeyError(
"Vertex info does not contain the property group.");
}
return prefix_ + property_group.GetPrefix() + "part" +
std::to_string(chunk_index) + "/" + "chunk0";
return prefix_ + property_group.GetPrefix() + "chunk" +
std::to_string(chunk_index);
}

/// Get the chunk files directory path of property group
Expand Down Expand Up @@ -561,8 +561,8 @@ class EdgeInfo {
if (!ContainAdjList(adj_list_type)) {
return Status::KeyError("The adj list type is not found in edge info.");
}
return prefix_ + adj_list2prefix_.at(adj_list_type) + "offset/part" +
std::to_string(vertex_chunk_index) + "/" + "chunk0";
return prefix_ + adj_list2prefix_.at(adj_list_type) + "offset/chunk" +
std::to_string(vertex_chunk_index);
}

/// Get the adj list offset chunk file directory path of adj list type
Expand Down
4 changes: 2 additions & 2 deletions spark/src/main/scala/com/alibaba/graphar/EdgeInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ class EdgeInfo() {
def getAdjListOffsetFilePath(chunk_index: Long, adj_list_type: AdjListType.Value) : String = {
if (containAdjList(adj_list_type) == false)
throw new IllegalArgumentException
val str: String = prefix + getAdjListPrefix(adj_list_type) + "offset/part" +
chunk_index.toString() + "/chunk0"
val str: String = prefix + getAdjListPrefix(adj_list_type) + "offset/chunk" +
chunk_index.toString()
return str
}

Expand Down
2 changes: 1 addition & 1 deletion spark/src/main/scala/com/alibaba/graphar/VertexInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class VertexInfo() {
} else {
str = property_group.getPrefix
}
return prefix + str + "part" + chunk_index.toString() + "/chunk0"
return prefix + str + "chunk" + chunk_index.toString()
}

def getDirPath(property_group: PropertyGroup): String = {
Expand Down

0 comments on commit 0e0a345

Please sign in to comment.