Skip to content

Conversation

Linary
Copy link
Contributor

@Linary Linary commented Jan 5, 2021

No description provided.

@codecov-io
Copy link

codecov-io commented Jan 6, 2021

Codecov Report

Merging #6 (3337825) into master (89e35d9) will decrease coverage by 70.58%.
The diff coverage is 0.00%.

Impacted file tree graph

@@ Coverage Diff @@ ## master #6 +/- ## ============================================ - Coverage 70.58% 0.00% -70.59%  ============================================ Files 14 35 +21 Lines 204 753 +549 Branches 12 64 +52 ============================================ - Hits 144 0 -144  - Misses 51 753 +702  + Partials 9 0 -9 
Impacted Files Coverage Δ Complexity Δ
...aidu/hugegraph/computer/core/common/Constants.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...idu/hugegraph/computer/core/common/SerialEnum.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...mputer/core/common/exception/ComputeException.java 0.00% <ø> (ø) 0.00 <0.00> (?)
...puter/core/common/exception/ComputerException.java 0.00% <ø> (ø) 0.00 <0.00> (?)
...ter/core/common/exception/IllegalArgException.java 0.00% <ø> (ø) 0.00 <0.00> (?)
.../computer/core/common/exception/ReadException.java 0.00% <ø> (ø) 0.00 <0.00> (?)
...computer/core/common/exception/WriteException.java 0.00% <ø> (ø) 0.00 <0.00> (?)
...du/hugegraph/computer/core/graph/id/IdFactory.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...baidu/hugegraph/computer/core/graph/id/IdType.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...baidu/hugegraph/computer/core/graph/id/LongId.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 55 more

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 89e35d9...3337825. Read the comment docs.

houzhizhen
houzhizhen previously approved these changes Jan 6, 2021
ValueType valueType = values.get(code);
if (valueType == null) {
String message = "Can not find ValueType for code %s.";
String message = "Can't find ValueType for code %s.";

Choose a reason for hiding this comment

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

ValueType -> valueType

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It represent a class name

return new IdValue();
default:
String message = "Can not create Value for %s.";
String message = "Can't create Value for %s.";

Choose a reason for hiding this comment

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

Value -> value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It represent a class name


int readVInt() throws IOException;

long readVLong() throws IOException;
Copy link
Contributor

Choose a reason for hiding this comment

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

add more methods(from BytesBuffer class)


@Override
public void writeId(Id id) throws IOException {
this.writeByte(id.type().code());
Copy link
Contributor

Choose a reason for hiding this comment

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

copy writeId() from hugegraph-core and reserve the first byte

public IdValue idValue() {
int len = Byte.BYTES + Long.BYTES + Long.BYTES;
try (ByteArrayOutputStream baos = new ByteArrayOutputStream(len)) {
// len = Byte.BYTES + Long.BYTES + Long.BYTES;
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

uuid use writeLong, fixed 8 bytes


@Override
public ValueType type() {
return this.valueType;
Copy link
Contributor

Choose a reason for hiding this comment

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

how to declare List of List<Long>

}

public ListValue(ValueType elemType) {
this.elemType = elemType;
Copy link
Contributor

Choose a reason for hiding this comment

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

add update element value


private ValueType elemType;
private List<T> values;

Copy link
Contributor

Choose a reason for hiding this comment

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

how to get element from list?

private List<T> values;

public ListValue() {
this(ValueType.UNKNOWN);
Copy link
Contributor

Choose a reason for hiding this comment

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

add method size()

BIN,
CSV,
JSON;

Copy link
Contributor

Choose a reason for hiding this comment

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

unused row

@houzhizhen houzhizhen merged commit 4522333 into master Jan 19, 2021
@houzhizhen houzhizhen deleted the basic-code branch January 19, 2021 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants