From 57b2204a4c50700adbd1fefe62dc1fb86287ac88 Mon Sep 17 00:00:00 2001 From: Piotr Macek Date: Tue, 28 Apr 2020 14:34:31 +0200 Subject: [PATCH 1/2] Add support for spatial filters. --- .../spatialFilterSpec/PolygonBound.java | 22 ++++++ .../filter/spatialFilterSpec/RadiusBound.java | 23 ++++++ .../spatialFilterSpec/RectangularBound.java | 22 ++++++ .../spatialFilterSpec/SpatialFilter.java | 37 +++++++++ .../SpatialFilterBoundSpec.java | 11 +++ .../spatialFilterSpec/PolygonBoundTest.java | 69 +++++++++++++++++ .../spatialFilterSpec/RadiusBoundTest.java | 71 +++++++++++++++++ .../RectangularFilterTest.java | 71 +++++++++++++++++ .../spatialFilterSpec/SpatialFilterTest.java | 77 +++++++++++++++++++ 9 files changed, 403 insertions(+) create mode 100644 src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java create mode 100644 src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java create mode 100644 src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java create mode 100644 src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilter.java create mode 100644 src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java create mode 100644 src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBoundTest.java create mode 100644 src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBoundTest.java create mode 100644 src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularFilterTest.java create mode 100644 src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterTest.java diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java new file mode 100644 index 00000000..b0bc45ba --- /dev/null +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java @@ -0,0 +1,22 @@ +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NonNull; + +import java.util.List; + +@Getter +@EqualsAndHashCode(callSuper = true) +public class PolygonBound extends SpatialFilterBoundSpec { + private static String SPATIAL_BOUND_TYPE = "polygon"; + + private List abscissa; + private List ordinate; + + public PolygonBound(@NonNull List abscissa, @NonNull List ordinate) { + this.type = SPATIAL_BOUND_TYPE; + this.abscissa = abscissa; + this.ordinate = ordinate; + } +} diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java new file mode 100644 index 00000000..ecdc8127 --- /dev/null +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java @@ -0,0 +1,23 @@ +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NonNull; + +import java.util.List; + +@Getter +@EqualsAndHashCode(callSuper = true) +public class RadiusBound extends SpatialFilterBoundSpec { + private static String SPATIAL_BOUND_TYPE = "radius"; + + private List coords; + private Number radius; + + public RadiusBound(@NonNull List coords, @NonNull Number radius) { + this.type = SPATIAL_BOUND_TYPE; + this.coords = coords; + this.radius = radius; + } + +} diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java new file mode 100644 index 00000000..fb47abc2 --- /dev/null +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java @@ -0,0 +1,22 @@ +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NonNull; + +import java.util.List; + +@Getter +@EqualsAndHashCode(callSuper = true) +public class RectangularBound extends SpatialFilterBoundSpec { + private static String SPATIAL_BOUND_TYPE = "rectangular"; + + private List minCoords; + private List maxCoords; + + public RectangularBound(@NonNull List minCoords, @NonNull List maxCoords) { + this.type = SPATIAL_BOUND_TYPE; + this.minCoords = minCoords; + this.maxCoords = maxCoords; + } +} diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilter.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilter.java new file mode 100644 index 00000000..9977f9c7 --- /dev/null +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilter.java @@ -0,0 +1,37 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import in.zapr.druid.druidry.filter.DruidFilter; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.NonNull; + +@Getter +@EqualsAndHashCode(callSuper = true) +public class SpatialFilter extends DruidFilter { + private static String SPATIAL_DRUID_FILTER_TYPE = "spatial"; + + private String dimension; + private SpatialFilterBoundSpec bound; + + public SpatialFilter(@NonNull String dimension, @NonNull SpatialFilterBoundSpec bound) { + this.type = SPATIAL_DRUID_FILTER_TYPE; + this.dimension = dimension; + this.bound = bound; + } +} \ No newline at end of file diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java new file mode 100644 index 00000000..c06b339e --- /dev/null +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java @@ -0,0 +1,11 @@ +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import lombok.EqualsAndHashCode; +import lombok.Getter; + +@Getter +@EqualsAndHashCode +public abstract class SpatialFilterBoundSpec { + protected String type; + +} diff --git a/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBoundTest.java b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBoundTest.java new file mode 100644 index 00000000..0d80b939 --- /dev/null +++ b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBoundTest.java @@ -0,0 +1,69 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.List; + +public class PolygonBoundTest { + + private static ObjectMapper objectMapper; + + @BeforeClass + public void init() { + objectMapper = new ObjectMapper(); + } + + @Test + public void testAllFields() throws JSONException, JsonProcessingException { + List abscissaValues = Arrays.asList(1.1, 2.2, 3.3); + List ordinateValues = Arrays.asList(3.2, 2.2, 1.1); + SpatialFilterBoundSpec filter = new PolygonBound(abscissaValues, ordinateValues); + + JSONObject boundObject = new JSONObject(); + boundObject.put("type", "polygon"); + boundObject.put("abscissa", new JSONArray(abscissaValues)); + boundObject.put("ordinate", new JSONArray(ordinateValues)); + + String actualJSON = objectMapper.writeValueAsString(filter); + String expectedJSON = boundObject.toString(); + JSONAssert.assertEquals(expectedJSON, actualJSON, JSONCompareMode.NON_EXTENSIBLE); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testMinCoordMissing() { + List ordinateValues = Arrays.asList(3.2, 2.2, 1.1); + SpatialFilterBoundSpec bound = new PolygonBound(null, ordinateValues); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testMaxCoordMissing() { + List abscissaValues = Arrays.asList(1.1, 2.2, 3.3); + SpatialFilterBoundSpec bound = new PolygonBound(abscissaValues, null); + } + +} diff --git a/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBoundTest.java b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBoundTest.java new file mode 100644 index 00000000..558f9699 --- /dev/null +++ b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBoundTest.java @@ -0,0 +1,71 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.List; + +public class RadiusBoundTest { + + private static ObjectMapper objectMapper; + + @BeforeClass + public void init() { + objectMapper = new ObjectMapper(); + } + + @Test + public void testAllFields() throws JSONException, JsonProcessingException { + + List coordValues = Arrays.asList(1.1, 2.2, 3.3); + double radius = 5.5; + SpatialFilterBoundSpec bound = new RadiusBound(coordValues, radius); + + JSONObject boundObject = new JSONObject(); + boundObject.put("type", "radius"); + boundObject.put("coords", new JSONArray(coordValues)); + boundObject.put("radius", radius); + + + String actualJSON = objectMapper.writeValueAsString(bound); + String expectedJSON = boundObject.toString(); + JSONAssert.assertEquals(expectedJSON, actualJSON, JSONCompareMode.NON_EXTENSIBLE); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testCoordsMissing() { + double radius = 5.5; + SpatialFilterBoundSpec bound = new RadiusBound(null, radius); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testValueMissing() { + List coordValues = Arrays.asList(1.1, 2.2, 3.3); + SpatialFilterBoundSpec bound = new RadiusBound(coordValues, null); + } + +} diff --git a/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularFilterTest.java b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularFilterTest.java new file mode 100644 index 00000000..4812292d --- /dev/null +++ b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularFilterTest.java @@ -0,0 +1,71 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.List; + +public class RectangularFilterTest { + + private static ObjectMapper objectMapper; + + @BeforeClass + public void init() { + objectMapper = new ObjectMapper(); + } + + @Test + public void testAllFields() throws JSONException, JsonProcessingException { + + List minCoordValues = Arrays.asList(1.1, 2.2, 3.3); + List maxCoordValues = Arrays.asList(3.2, 2.2, 1.1); + + SpatialFilterBoundSpec filter = new RectangularBound(minCoordValues, maxCoordValues); + + JSONObject boundObject = new JSONObject(); + boundObject.put("type", "rectangular"); + boundObject.put("minCoords", new JSONArray(minCoordValues)); + boundObject.put("maxCoords", new JSONArray(maxCoordValues)); + + String actualJSON = objectMapper.writeValueAsString(filter); + String expectedJSON = boundObject.toString(); + JSONAssert.assertEquals(expectedJSON, actualJSON, JSONCompareMode.NON_EXTENSIBLE); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testMinCoordMissing() { + List maxCoordValues = Arrays.asList(3.2, 2.2, 1.1); + SpatialFilterBoundSpec bound = new RectangularBound(null, maxCoordValues); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testMaxCoordMissing() { + List minCoordValues = Arrays.asList(1.1, 2.2, 3.3); + SpatialFilterBoundSpec bound = new RectangularBound(minCoordValues, null); + } + +} diff --git a/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterTest.java b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterTest.java new file mode 100644 index 00000000..6541f88d --- /dev/null +++ b/src/test/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterTest.java @@ -0,0 +1,77 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package in.zapr.druid.druidry.filter.spatialFilterSpec; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.skyscreamer.jsonassert.JSONAssert; +import org.skyscreamer.jsonassert.JSONCompareMode; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.List; + +public class SpatialFilterTest { + + private static ObjectMapper objectMapper; + + @BeforeClass + public void init() { + objectMapper = new ObjectMapper(); + } + + @Test + public void testAllFields() throws JSONException, JsonProcessingException { + + List minCoordValues = Arrays.asList(1.1, 2.2, 3.3); + List maxCoordValues = Arrays.asList(3.2, 2.2, 1.1); + + SpatialFilter filter = new SpatialFilter("coordinates", new RectangularBound(minCoordValues, maxCoordValues)); + + JSONObject boundObject = new JSONObject(); + boundObject.put("type", "rectangular"); + boundObject.put("minCoords", new JSONArray(minCoordValues)); + boundObject.put("maxCoords", new JSONArray(maxCoordValues)); + + JSONObject jsonObject = new JSONObject(); + jsonObject.put("type", "spatial"); + jsonObject.put("dimension", "coordinates"); + jsonObject.put("bound", boundObject); + + String actualJSON = objectMapper.writeValueAsString(filter); + String expectedJSON = jsonObject.toString(); + JSONAssert.assertEquals(expectedJSON, actualJSON, JSONCompareMode.NON_EXTENSIBLE); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testDimensionMissing() { + List minCoordValues = Arrays.asList(1.1, 2.2, 3.3); + List maxCoordValues = Arrays.asList(3.2, 2.2, 1.1); + SpatialFilter filter = new SpatialFilter(null, new RectangularBound(minCoordValues, maxCoordValues)); + } + + @Test(expectedExceptions = NullPointerException.class) + public void testValueMissing() { + SpatialFilter filter = new SpatialFilter("Hello", null); + } + + +} From aa13267dd80748a9d40d943c73afb851e4795664 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 6 Apr 2021 09:32:35 +0200 Subject: [PATCH 2/2] Add missing license info --- .../filter/spatialFilterSpec/PolygonBound.java | 16 ++++++++++++++++ .../filter/spatialFilterSpec/RadiusBound.java | 16 ++++++++++++++++ .../spatialFilterSpec/RectangularBound.java | 16 ++++++++++++++++ .../SpatialFilterBoundSpec.java | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java index b0bc45ba..b7d2090d 100644 --- a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/PolygonBound.java @@ -1,3 +1,19 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package in.zapr.druid.druidry.filter.spatialFilterSpec; import lombok.EqualsAndHashCode; diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java index ecdc8127..002485b5 100644 --- a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RadiusBound.java @@ -1,3 +1,19 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package in.zapr.druid.druidry.filter.spatialFilterSpec; import lombok.EqualsAndHashCode; diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java index fb47abc2..70ff2e0c 100644 --- a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/RectangularBound.java @@ -1,3 +1,19 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package in.zapr.druid.druidry.filter.spatialFilterSpec; import lombok.EqualsAndHashCode; diff --git a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java index c06b339e..51ffaf93 100644 --- a/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java +++ b/src/main/java/in/zapr/druid/druidry/filter/spatialFilterSpec/SpatialFilterBoundSpec.java @@ -1,3 +1,19 @@ +/* + * Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package in.zapr.druid.druidry.filter.spatialFilterSpec; import lombok.EqualsAndHashCode;