-
Notifications
You must be signed in to change notification settings - Fork 243
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
Full code for esql article #787
Conversation
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.
Nice example!
Considering that it's a single class, it would probably make sense to move it to java-client/src/main/test/co/elastic/clients/documentation/api_conventions
so that we can reuse it in ES|QL-related docs.
Or at least make it a child of the root project, so that we don't have a duplicate Gradle installation and so that it can be compiled as part of the regular build process.
|
||
boolean hasNext = true; | ||
|
||
while (hasNext) { |
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.
Nit: use the more common while(it.hasNext())
construct?
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.hasNext() throws an exception if lines are malformed, I wanted to keep everything into the loop so malformed lines can be ignored
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.
LGTM
No description provided.