Skip to content

Add visitor pattern to the triangle tree #63333

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

Merged
merged 6 commits into from
Oct 22, 2020

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Oct 6, 2020

GeoShape doc values are stored as an interval tree of triangles. Currently the only implementation that uses this structure is the tile aggregation with a custom implementation. In order to add more functionality to this data structure, we should add a visitor pattern.

@iverase iverase added :Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring v8.0.0 labels Oct 6, 2020
@iverase iverase requested review from talevy and nknize October 6, 2020 14:31
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Geo)

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 6, 2020
within = true;
}
/** Visitor for triangle interval tree */
interface Visitor {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is where the meat of the PR is.

Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

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

this is great! it is definitely a nicer abstraction for being able to traverse the triangle tree with different intentions!

@iverase iverase merged commit 20815de into elastic:master Oct 22, 2020
@iverase iverase deleted the triangleTreeVisitor branch October 22, 2020 09:33
iverase added a commit that referenced this pull request Oct 22, 2020
In order to add more functionality to this data structure, this commit adds a visitor pattern to the tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants