- Notifications
You must be signed in to change notification settings - Fork 44
rename DataFileManager to FileManager #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@ ## master #54 +/- ## ============================================ + Coverage 85.76% 85.81% +0.04% - Complexity 1490 1491 +1 ============================================ Files 156 157 +1 Lines 4918 4914 -4 Branches 405 405 ============================================ - Hits 4218 4217 -1 + Misses 465 463 -2 + Partials 235 234 -1
Continue to review full report at Codecov.
|
/** | ||
* @return the next data dir to persist data like vertices, edges and | ||
* messages. | ||
* @return the next data directory to persist data like vertices, edges and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe what's "next data directory"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* messages. | ||
* @return the next data directory to persist data like vertices, edges and | ||
* messages. If pass parentDirectories such as ["message", "1"], it | ||
* return directory end with message/1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First specify the parameter summary, then give an example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* return directory end with message/1. | ||
*/ | ||
File nextDir(); | ||
File nextDir(String... parentDirectories); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to paths
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
File dir = this.dirs.get(index % this.dirs.size()); | ||
for (String path : prefix) { | ||
dir = new File(dir, path); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dir = dir + Paths.get(prefix)
| ||
@Override | ||
public File nextDir() { | ||
public File nextDir(String... prefix) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to paths
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this method.
65ebedc
to 0754a9e
Compare * @return The directory of allocated local base directory. | ||
*/ | ||
File nextDir(String... parentDirectories); | ||
String nextBaseDirectory(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nextDirectory is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
/** | ||
* @return the next file to persist data like vertices, edges and messages. | ||
* The returned file is unique. | ||
* @param paths The paths as sub-directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add summary first
* @return the next file to persist data like vertices, edges and messages. | ||
* The returned file is unique. | ||
* @param paths The paths as sub-directory. | ||
* @return A string representation of a directory "#nextBaseDirectory() + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A string representation of a base directory + joined string of paths
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* @return the next data directory to persist data like vertices, edges and | ||
* messages. If pass parentDirectories such as ["message", "1"], it | ||
* return directory end with message/1. | ||
* FileGenerator manages the local base directories of a container. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allocate a base directory each call, there may be multi base directories configured by user, generally each base directory represent a disk, allocated by round mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* one local disks. | ||
* Allocate a base directory each call. There may be multi base | ||
* directories configured by user, generally each base directory | ||
* represent a disk, allocated by round mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep example
String nextDirectory(); | ||
| ||
/** | ||
* Return a string representation of a allocated base directory + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allocate a base directory each call, return allocated base directory + joined string of paths.
* | ||
* For example, the base directories configured | ||
* ["/disk1/job_001/container_001", "/disk2/job_001/container_001"]. | ||
* It indicates there are two base directories and one directory for one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each base directory for one disk
No description provided.