-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GeoPoint and GeoShape with generics (#89388)
* Refactor GeoPoint and GeoShape with generics In preparation for supporting CartesianPoint and CartesianShape in aggregations, this PR adds a common interface between GeoPoint and CartesianPoint, and then uses that to split out some key common code that will be used in CartesianPoint and CartesianShape aggregations * Simplify generics (by Ignacio) Co-authored-by: Ignacio Vera <[email protected]> * Refactor ElasticPoint to SpatialPoint * Rename ShapeValuesProvider to ShapeValuesSource It extends ValuesSource, and is extended by GeoShapeValuesSource. There is no reason for the suffix `Provider`. * Code review, mostly AbstractShapeIndexFieldData * Reverted trivial refactoring * Removed unused Writable interface implementation * Further generics refinements Based on Ignacio's work in 050df95, we fix the BoundingBox generics, and also add a little more specificity to the previous generics (replace <?> with <? extends SpatialPoint>). * Removed some geo-specific code from BoundingBox Co-authored-by: Ignacio Vera <[email protected]>
- Loading branch information
1 parent
97f0e98
commit b68d62b
Showing
83 changed files
with
2,139 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.