-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Conversation
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
within = true; | ||
} | ||
/** Visitor for triangle interval tree */ | ||
interface Visitor { |
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.
Here is where the meat of the PR is.
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 is great! it is definitely a nicer abstraction for being able to traverse the triangle tree with different intentions!
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.