-
Notifications
You must be signed in to change notification settings - Fork 22
New resultset structure #35
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
List<String>, ResultSet size, added scalar types
as well as new interface modifications
access initialized instance. Added call procedure method, and calls to get graph labels, property names, and relationship types.
| * @return a result set | ||
| */ | ||
| public ResultSet query(String query, Object ...args) { | ||
| StringBuilder sb = new StringBuilder(); |
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.
sb dead code?
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
|
@DvirDukhan notice some of the tests failed on CI |
Codecov Report
@@ Coverage Diff @@
## master #35 +/- ##
===========================================
- Coverage 94.91% 65.25% -29.67%
===========================================
Files 6 16 +10
Lines 118 400 +282
Branches 17 68 +51
===========================================
+ Hits 112 261 +149
- Misses 1 113 +112
- Partials 5 26 +21
Continue to review full report at Codecov.
|
| * @param graphId a graph to perform the query on | ||
| * @param procedure - procedure to execute | ||
| * @param args - procedure arguments | ||
| * @param kwargs |
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.
JDoc?
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
src/main/java/com/redislabs/redisgraph/impl/GraphCacheList.java
Outdated
Show resolved
Hide resolved
src/main/java/com/redislabs/redisgraph/impl/GraphCacheList.java
Outdated
Show resolved
Hide resolved
| */ | ||
| private void getProcedureInfo() { | ||
| ResultSet resultSet = redisGraph.callProcedure(graphId, procedure); | ||
| this.clear(); |
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.
Why clear? shouldn't we just add?
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
src/main/java/com/redislabs/redisgraph/impl/StatisticsImpl.java
Outdated
Show resolved
Hide resolved
| * @param index index of data item | ||
| * @return The string value of the specific procedure response, at the given index. | ||
| */ | ||
| public String getCachedData(int index) { |
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.
It looks good, but just an idea...
public String getCachedData(int index) {
String s;
try {
s = data.get(index);
} catch (IndexOutOfBoundsException e){
synchronized (mutex){
if (index >= data.size()) {
getProcedureInfo();
}
}
s = data.get(index);
}
return s;
}
…ph/JRedisGraph into new-resultset-structure
DO NOT MERGE!
Modified to new resultset structure
version moved to 2.0.0-snapshot