-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat(client): support "parent & child" EdgeLabel type #624
Merged
Merged
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
694a2a7
add EdgeLabelType and related field in EdgeLabel
Thespica 3df065c
modify ci related script
Thespica f1b1afe
continue on error ci
Thespica 786e9a6
enable run client's three test suites
Thespica 59ed6a1
modify GraphElement.java
Thespica 1e00082
fix EdgeLabelTest.testListByNames
Thespica 6cc46a8
fix part of edge id related tests
Thespica 75ce36a
let server of ci be the latest version of branch father-sub-edge
Thespica 869997a
fix server version
Thespica cd26708
swich ci jdk to 11
Thespica 5b8570f
not delay link of soruce label and target label to avoid null links
Thespica 0c25411
fix getting name(aka sortValues) form edge id
Thespica d9f03e2
fix deserialize error of edge label, switch mockito version
Thespica 9b672a2
fix testReadEdgeLabel's superfluous comma in json
Thespica ab04f08
let loader and spark-connector enable to rely on the latest client
Thespica 2d9a2cb
set loader and spark-connector ci server be same as client, refine te…
Thespica bd4d32d
modify loader and spark-connector server-install script
Thespica 2ddcda3
fix loader file load test's expected text
Thespica a87db4b
remove unused code, add deprecated annotation, makr TODO in ci and sc…
Thespica be5fb6e
modify way to repy on client
Thespica 6d8b68d
correct ci.yaml gramma
Thespica 37c38be
modify ci
Thespica 13ddb27
format
Thespica b70118e
allow add target label before adding source label, format
Thespica 05bcba2
remove GENERAL enum for EdgeLabelType
Thespica 7563a6f
modify import *
Thespica 1010a56
add todo of mockito
Thespica c2cb2d5
refactor: enhance the logic for client-ci
imbajin b39d740
format code
imbajin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
hugegraph-client/src/main/java/org/apache/hugegraph/structure/constant/EdgeLabelType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with this | ||
* work for additional information regarding copyright ownership. The ASF | ||
* licenses this file to You under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.apache.hugegraph.structure.constant; | ||
|
||
public enum EdgeLabelType { | ||
|
||
NORMAL(0, "NORMAL"), | ||
|
||
PARENT(1, "PARENT"), | ||
|
||
SUB(2, "SUB"); | ||
|
||
private byte code = 0; | ||
private String name = null; | ||
|
||
EdgeLabelType(int code, String name) { | ||
assert code < 256; | ||
this.code = (byte) code; | ||
this.name = name; | ||
} | ||
|
||
public boolean parent() { | ||
return this == PARENT; | ||
} | ||
|
||
public boolean sub() { | ||
return this == SUB; | ||
} | ||
|
||
public boolean normal() { | ||
return this == NORMAL; | ||
} | ||
|
||
public byte code() { | ||
return this.code; | ||
} | ||
|
||
public String string() { | ||
return this.name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what's for? (any context)