Skip to content

Conversation

houzhizhen
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented May 27, 2021

Codecov Report

Merging #54 (56ac2a0) into master (a087d27) will increase coverage by 0.04%.
The diff coverage is 85.71%.

Impacted file tree graph

@@ 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 
Impacted Files Coverage Δ
...idu/hugegraph/computer/core/store/FileManager.java 90.00% <83.33%> (ø)
...u/hugegraph/computer/core/store/FileGenerator.java 100.00% <100.00%> (ø)
...h/computer/core/network/session/ClientSession.java 91.66% <0.00%> (+3.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a087d27...56ac2a0. Read the comment docs.

/**
* @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
Copy link
Contributor

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"

Copy link
Contributor Author

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.
Copy link
Contributor

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

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to paths

Copy link
Contributor Author

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);
}
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to paths

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this method.

* @return The directory of allocated local base directory.
*/
File nextDir(String... parentDirectories);
String nextBaseDirectory();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nextDirectory is ok

Copy link
Contributor Author

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.
Copy link
Contributor

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() +
Copy link
Contributor

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

Copy link
Contributor Author

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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.
Copy link
Contributor

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 +
Copy link
Contributor

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
Copy link
Contributor

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

@corgiboygsj corgiboygsj merged commit aaeec64 into master May 28, 2021
@houzhizhen houzhizhen deleted the file-generator branch June 15, 2021 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants