Commit graph

33 commits

Author SHA1 Message Date
Rene Groeschke
c158859921
[8.16] Reapply "[Build] Do not invalidate configuration cache when branch is switched (#118894)" (#119300) (#119325) (#119338)
* Reapply "[Build] Do not invalidate configuration cache when branch is switched (#118894)" (#119300) (#119325)

* Reapply "[Build] Do not invalidate configuration cache when branch is switched (#118894)" (#119300)

The original PR (#118894) has broken serverless.

* Fix gitinfo plugin for serverless usage

* Update buildscan git revision reference

(cherry picked from commit 5278159987)

# Conflicts:
#	build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/PublishPlugin.java

* Fix merge conflict
2024-12-30 15:31:36 +01:00
Ignacio Vera
f0f8cb4493
Make H3 CellBoundary immutable (#113792) (#114204)
Small refactor that makes CellBoundary immutable.
2024-10-07 20:42:16 +11:00
Ignacio Vera
bd5f989f3e
Revert "Protect H3 library against integer overflow #92829" (#113773) (#113782)
This library has well defined inputs and outputs so protecting against overflow is not necessary and it introduces a 
significant overhead.
2024-09-30 21:07:13 +10:00
Ignacio Vera
c5a4792925
convert some H3 classes to records (#113574) (#113772) 2024-09-30 20:05:52 +10:00
Ignacio Vera
f7190599c2
Small performance improvement in h3 library (#113385) (#113429)
Changing some FDIV's into FMUL's leads to performance improvements
2024-09-24 16:08:52 +10:00
William Brafford
d07651f8b9
Checkstyle: require braces around do, for, and while clauses (#103217)
* Checkstyle requires braces after for, do, while
2024-01-09 16:03:45 -05:00
David Turner
c5e519dcd8
Remove unnecessary != false idioms (#96654) 2023-06-07 10:12:51 -04:00
Ignacio Vera
f49b520b81
[H3] Minor optimization in creating Vec2d objects (#93166) 2023-01-24 16:16:10 +01:00
Ignacio Vera
4224026fb2
[H3] Compute destination point from distance and azimuth using planar 3d math (#93084)
Replace the method geoAzDistanceRads from using trigonometric maths to use planar 3d math
2023-01-23 13:30:19 +01:00
Luca Cavanna
edd7749164
Upgrade to lucene-9.5.0-snapshot-d19c3e2e0ed (#92957)
9.5 will include several changes related to vector search. An extensive list is available at https://github.com/apache/lucene/milestone/4 .
2023-01-19 14:07:33 +01:00
Ignacio Vera
b45737e43d
Speed up computing h3 cell bounding box with great circle edges (#92815)
compute the bounding box for great circle edges using the Clairaut's formula.
2023-01-16 14:51:41 +01:00
Ignacio Vera
f7069d05d0
Protect H3 library against integer overflow (#92829)
The H3 library contains many mathematical operations on integers. his change makes sure the library 
will throw an error if the operation overflows.
2023-01-16 13:27:09 +01:00
Ignacio Vera
9b3f8db438
Add methods that return polar cells in H3 library (#92780) 2023-01-11 11:11:55 +01:00
Ignacio Vera
6047c81487
Add methods to H3#hexRing to prevent allocating long arrays (#92711) 2023-01-09 17:47:55 +01:00
Ignacio Vera
f581f0b5d2
Speed h3 library by using FastMath implementation for trigonometric functions (#91839) 2022-12-20 14:02:33 +01:00
Ignacio Vera
60a22db42e
Improve H3 Vec2d#v2dIntersect method (#92433) 2022-12-19 12:45:45 +01:00
Ignacio Vera
1e1ba68ed8
Adjust azimuth test delta (#92386) 2022-12-15 10:23:58 +01:00
Ignacio Vera
3746d8aa34
limit the H3 resolution we test until lucene bug is fixed (#92110) 2022-12-12 16:52:08 +01:00
Craig Taverner
9478bd306a
Avoid odd edge case for azimuth when lat=-90 (#92167)
Azimuth is not well defined here anyway.
2022-12-07 10:35:03 +01:00
Craig Taverner
121199d038
Mute AzimuthTests.testLatLonVec3d for #92136 (#92145) 2022-12-06 13:03:48 +01:00
Ignacio Vera
2baf7c4d23
Add methods to prevent allocating long arrays during child navigation on H3 api (#92099) 2022-12-05 16:39:02 +01:00
Ignacio Vera
3286bae8c6
Add new H3 api method #h3ToNoChildrenIntersecting (#91673)
Given an H3 index, this method returns all the h3 index in the next resolution that intersects the provided h3 
index but they are not children from it.
2022-11-22 10:19:07 +01:00
Ignacio Vera
ff9af20b0f
Reduce number of object allocations in H3#h3ToGeoBoundary (#91586) 2022-11-16 16:13:39 +01:00
Ignacio Vera
5befc4feb9
Reduce number of object allocations in H3#geoToH3 and speed up computations (#91492) 2022-11-14 10:42:36 +01:00
Ignacio Vera
39558d9bc6
Improve H3#hexRing logic and add H3#areNeighborCells method (#91140)
Clean up the logic as we are allowing only first neighbours so we can simplify it a bit and remove some unnecessary 
allocations. In addition we ported the method H3#areNeighborCells which can be useful for example for aggregations
over geo_shape.
2022-11-02 13:23:05 +01:00
Rene Groeschke
53a2aa94f9
License the h3 library as apache (#91109) 2022-10-25 12:14:27 +02:00
Chris Hegarty
ca7783c429
Modularize the h3 component (#87737) 2022-06-16 13:44:05 +01:00
Ignacio Vera
021989457d
Add getResolution method to H3 (#86519) 2022-05-09 11:10:42 +02:00
Ryan Ernst
5f06b5f627
Add x-content testing jar (#84775)
This commit adds a jar separate from the test framework to provide
utilities for testing x-content related code. The first thing moved
there is the base schema validation test case, which also pulls along
the com.networknt dependency and jackson. For now these are direct
dependencies, though we could consider shading them in the future so as
not to expose downstream projects to them, which may have version
conflicts.
2022-03-09 09:48:34 -08:00
Mayya Sharipova
26c3dd6857
Upgrade to lucene-9.1.0-snapshot-1336263051c (#83667)
Lucene issues that resulted in elasticsearch changes:

LUCENE-9820 Separate logic for reading the BKD index from logic to intersecting it.
LUCENE-10377: Replace 'sortPos' with 'enableSkipping' in SortField.getComparator()
LUCENE-10301: make the test-framework a proper module by moving all test
classes to org.apache.lucene.tests
LUCENE-10300: rewrite how resources are read in ukrainian morfologik analyzer:
LUCENE-10054 Make HnswGraph hierarchical
2022-02-22 09:53:20 +01:00
Ignacio Vera
10cb51ed9c
fix GeoToH3Tests#testRandomPoints (#83309)
This PR changes the test to use Lucene spatial3d library that uses spherical geometry
to check containment in the test.
2022-02-02 07:44:56 +01:00
Ignacio Vera
1418823911
Mute GeoToH3Tests#testRandomPoints (#83308) 2022-01-31 07:59:55 +01:00
Ignacio Vera
93d041d837
Java port of H3 hexagonal grid library (#81714)
Adds a new lib project that contains the port to Java of basic functionality of the bar H3 library.
2022-01-24 08:48:44 +01:00