Skip to content
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

Bytecode removal from Java GLV #2648

Merged
merged 21 commits into from
Jun 13, 2024
Merged

Bytecode removal from Java GLV #2648

merged 21 commits into from
Jun 13, 2024

Conversation

vkagamlyk
Copy link
Contributor

Java GLV will no longer send requests as Bytecode.

Feature tests GraphBinaryRemoteFeatureTest switched to run with gremlin-lang due to minor incompatibilities with gremlin-groovy.

@vkagamlyk vkagamlyk marked this pull request as ready for review June 10, 2024 22:46
@@ -79,7 +79,7 @@ public GremlinScriptEngineFactory getFactory() {
* Bytecode is evaluated by the {@link JavaTranslator}.
*/
@Override
public Traversal.Admin eval(final Bytecode bytecode, final Bindings bindings, final String traversalSource) throws ScriptException {
public Traversal.Admin eval(final GremlinLang bytecode, final Bindings bindings, final String traversalSource) throws ScriptException {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rename variable as well to avoid confusion. I see this throughout all files, so prob need a search and update all references at some point.

Suggested change
public Traversal.Admin eval(final GremlinLang bytecode, final Bindings bindings, final String traversalSource) throws ScriptException {
public Traversal.Admin eval(final GremlinLang gremlinLang, final Bindings bindings, final String traversalSource) throws ScriptException {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hope to remove this altogether in one of the next PRs, 'GremlinScriptEngineFactory' will handle only gremlin scripts.

@@ -177,7 +175,7 @@
import java.util.stream.Stream;

/**
* Utility class for parsing {@link Bytecode}.
* Utility class for parsing {@link GremlinLang}.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: don't forget classname update

@xiazcy
Copy link
Contributor

xiazcy commented Jun 13, 2024

VOTE +1
Thanks for putting together the work! Looking forward to the rest of the changes.

@vkagamlyk
Copy link
Contributor Author

VOTE +1

1 similar comment
@kenhuuu
Copy link
Contributor

kenhuuu commented Jun 13, 2024

VOTE +1

@Cole-Greer
Copy link
Contributor

VOTE +1

@vkagamlyk vkagamlyk merged commit a7efddd into master-http Jun 13, 2024
16 of 36 checks passed
@vkagamlyk vkagamlyk deleted the valentyn/bytecode-poc branch June 13, 2024 20:33
kenhuuu pushed a commit that referenced this pull request Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants