-
Notifications
You must be signed in to change notification settings - Fork 521
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
add config for whether encoding number of primary keys #1323
Conversation
Change-Id: I07e113b7f29e0d38e5d362663046c755ea8dc751
Codecov Report
@@ Coverage Diff @@
## master #1323 +/- ##
=========================================
Coverage 62.33% 62.34%
+ Complexity 5771 5769 -2
=========================================
Files 377 377
Lines 31535 31546 +11
Branches 4418 4421 +3
=========================================
+ Hits 19658 19667 +9
- Misses 9880 9881 +1
- Partials 1997 1998 +1
Continue to review full report at Codecov.
|
@@ -200,12 +202,14 @@ public void correctVertexLabel(VertexLabel correctLabel) { | |||
IdStrategy.PRIMARY_KEY); | |||
|
|||
List<Object> propValues = new ArrayList<>(primaryKeys.size()); | |||
boolean encodeNumber = ((HugeConfig) this.graph().configuration()).get( |
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.
don't call configuration() if enable auth
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 method graph.option(CoreOptions.VERTEX_ENCODE_PK_NUMBER) and set whitelist
please set related issue id |
fixed: hugegraph/hugegraph-tools #78 Change-Id: I6faab73da43c8f2ede349b109b1047c2689f2e57
@@ -547,6 +548,11 @@ public long now() { | |||
return this.hugegraph.now(); | |||
} | |||
|
|||
@Override | |||
public <V> V option(ConfigOption<V> option) { | |||
return this.hugegraph.option(option); |
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.
this.verifyStatusPermission();
@@ -270,6 +270,11 @@ public boolean existsSchemaId(HugeType type, Id id) { | |||
return this.getSchema(type, id) != null; | |||
} | |||
|
|||
private boolean syncDelete() { |
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.
let asyncRun get it by option()
@@ -95,7 +96,7 @@ protected void checkSchemaIdIfRestoringMode(HugeType type, Id id) { | |||
} | |||
|
|||
protected long taskWaitTimeout() { | |||
return this.transaction.taskWaitTimeout(); | |||
return this.graph.option(CoreOptions.TASK_WAIT_TIMEOUT); |
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.
delete taskWaitTimeout() method
Configuration conf = HugeFeatures.this.graph.configuration(); | ||
return ((HugeConfig) conf).get(CoreOptions.VERTEX_DEFAULT_LABEL); | ||
return HugeFeatures.this.graph | ||
.option(CoreOptions.VERTEX_DEFAULT_LABEL); |
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.
align with ".this"
@@ -200,12 +201,14 @@ public void correctVertexLabel(VertexLabel correctLabel) { | |||
IdStrategy.PRIMARY_KEY); | |||
|
|||
List<Object> propValues = new ArrayList<>(primaryKeys.size()); | |||
boolean encodeNumber = this.graph() | |||
.option(CoreOptions.VERTEX_ENCODE_PK_NUMBER); |
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.
move to line 203
if (propertyName.equals(P.INPUT)) { | ||
propertyLimit = this.scheduler().taskInputSizeLimit(); | ||
propertyLimit = graph.option(CoreOptions.TASK_INPUT_SIZE_LIMIT) | ||
.intValue(); |
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.
change propertyLimit to long
fix apache/incubator-hugegraph-tools#78
Change-Id: I07e113b7f29e0d38e5d362663046c755ea8dc751