diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e6473e9080..153ee1b5db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,5 @@ repos: - id: check-xml # - id: check-yaml - id: detect-private-key + - id: end-of-file-fixer + files: \.java$|\.scala$ diff --git a/common/src/main/java/org/apache/sedona/common/enums/FileDataSplitter.java b/common/src/main/java/org/apache/sedona/common/enums/FileDataSplitter.java index 9eb84994f7..6f8921605f 100755 --- a/common/src/main/java/org/apache/sedona/common/enums/FileDataSplitter.java +++ b/common/src/main/java/org/apache/sedona/common/enums/FileDataSplitter.java @@ -129,4 +129,3 @@ public String getDelimiter() return this.splitter; } } - diff --git a/common/src/main/java/org/apache/sedona/common/raster/GeometryFunctions.java b/common/src/main/java/org/apache/sedona/common/raster/GeometryFunctions.java index 4213807134..a2c91fbd8f 100644 --- a/common/src/main/java/org/apache/sedona/common/raster/GeometryFunctions.java +++ b/common/src/main/java/org/apache/sedona/common/raster/GeometryFunctions.java @@ -124,4 +124,4 @@ public static Geometry envelope(GridCoverage2D raster) throws FactoryException { int srid = RasterAccessors.srid(raster); return new GeometryFactory(new PrecisionModel(), srid).toGeometry(envelope); } -} \ No newline at end of file +} diff --git a/common/src/main/java/org/apache/sedona/common/utils/BBox.java b/common/src/main/java/org/apache/sedona/common/utils/BBox.java index 898ccee5f3..979e3a790b 100644 --- a/common/src/main/java/org/apache/sedona/common/utils/BBox.java +++ b/common/src/main/java/org/apache/sedona/common/utils/BBox.java @@ -57,4 +57,4 @@ public Polygon toPolygon() { new Coordinate(this.startLon, this.startLat) }); } -} \ No newline at end of file +} diff --git a/common/src/test/java/org/apache/sedona/common/ConstructorsTest.java b/common/src/test/java/org/apache/sedona/common/ConstructorsTest.java index 7d621f7c5a..d7b92f3a7c 100644 --- a/common/src/test/java/org/apache/sedona/common/ConstructorsTest.java +++ b/common/src/test/java/org/apache/sedona/common/ConstructorsTest.java @@ -143,4 +143,4 @@ public void pointZ() { assertEquals(4326, point.getSRID()); assertEquals("POINT Z(0 1 2)", Functions.asWKT(point)); } -} \ No newline at end of file +} diff --git a/common/src/test/java/org/apache/sedona/common/H3UtilTest.java b/common/src/test/java/org/apache/sedona/common/H3UtilTest.java index 00e7622dbc..c6d3528e66 100644 --- a/common/src/test/java/org/apache/sedona/common/H3UtilTest.java +++ b/common/src/test/java/org/apache/sedona/common/H3UtilTest.java @@ -239,4 +239,4 @@ public void lineStringCrossPentagonToCellsNonFullCover() { assert approxCells.equals(cellsNonFullCover); assert !approxCells.equals(cellsFullCover); } -} \ No newline at end of file +} diff --git a/common/src/test/java/org/apache/sedona/common/geometrySerde/SpatialIndexSerdeTest.java b/common/src/test/java/org/apache/sedona/common/geometrySerde/SpatialIndexSerdeTest.java index 84dfc9644e..76f4a8eceb 100644 --- a/common/src/test/java/org/apache/sedona/common/geometrySerde/SpatialIndexSerdeTest.java +++ b/common/src/test/java/org/apache/sedona/common/geometrySerde/SpatialIndexSerdeTest.java @@ -231,4 +231,4 @@ private SpatialIndex generateIndex(int geomNum, Class aClass) } return quadtree; } -} \ No newline at end of file +} diff --git a/common/src/test/java/org/apache/sedona/common/raster/FunctionsTest.java b/common/src/test/java/org/apache/sedona/common/raster/FunctionsTest.java index 521557976f..cd76e669e7 100644 --- a/common/src/test/java/org/apache/sedona/common/raster/FunctionsTest.java +++ b/common/src/test/java/org/apache/sedona/common/raster/FunctionsTest.java @@ -191,4 +191,4 @@ public void values() throws TransformException { private Point point(double x, double y) { return new GeometryFactory().createPoint(new Coordinate(x, y)); } -} \ No newline at end of file +} diff --git a/examples/spark-rdd-colocation-mining/src/main/scala/ScalaExample.scala b/examples/spark-rdd-colocation-mining/src/main/scala/ScalaExample.scala index f8a7b1e208..f69a4e98a5 100644 --- a/examples/spark-rdd-colocation-mining/src/main/scala/ScalaExample.scala +++ b/examples/spark-rdd-colocation-mining/src/main/scala/ScalaExample.scala @@ -182,4 +182,4 @@ object ScalaExample extends App{ sparkSession.stop() } -} \ No newline at end of file +} diff --git a/examples/spark-sql/src/main/scala/ScalaExample.scala b/examples/spark-sql/src/main/scala/ScalaExample.scala index 4b3f457678..9f23304f6d 100644 --- a/examples/spark-sql/src/main/scala/ScalaExample.scala +++ b/examples/spark-sql/src/main/scala/ScalaExample.scala @@ -150,4 +150,4 @@ object ScalaExample extends App{ df = df.selectExpr("RS_GetBand(data, 1, numBands) as targetBand") df.selectExpr("RS_MultiplyFactor(targetBand, 3) as multiply").show() } -} \ No newline at end of file +} diff --git a/examples/spark-viz/src/main/scala/ScalaExample.scala b/examples/spark-viz/src/main/scala/ScalaExample.scala index c3f9035d34..4c78428b20 100644 --- a/examples/spark-viz/src/main/scala/ScalaExample.scala +++ b/examples/spark-viz/src/main/scala/ScalaExample.scala @@ -220,4 +220,4 @@ object ScalaExample extends App{ } -} \ No newline at end of file +} diff --git a/flink/src/main/java/org/apache/sedona/flink/expressions/Aggregators.java b/flink/src/main/java/org/apache/sedona/flink/expressions/Aggregators.java index c69a98b32f..55af89d289 100644 --- a/flink/src/main/java/org/apache/sedona/flink/expressions/Aggregators.java +++ b/flink/src/main/java/org/apache/sedona/flink/expressions/Aggregators.java @@ -190,5 +190,3 @@ public void resetAccumulator (Accumulators.AccGeometry acc){ } } } - - diff --git a/flink/src/test/java/org/apache/sedona/flink/TestBase.java b/flink/src/test/java/org/apache/sedona/flink/TestBase.java index 126a7ba648..6ed0dc37cb 100644 --- a/flink/src/test/java/org/apache/sedona/flink/TestBase.java +++ b/flink/src/test/java/org/apache/sedona/flink/TestBase.java @@ -412,4 +412,4 @@ static long count(Table table) { } return count; } -} \ No newline at end of file +} diff --git a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/LineStringFormatMapper.java b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/LineStringFormatMapper.java index d873692546..0d0655c443 100644 --- a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/LineStringFormatMapper.java +++ b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/LineStringFormatMapper.java @@ -50,4 +50,4 @@ public LineStringFormatMapper(Integer startOffset, Integer endOffset, FileDataSp { super(startOffset, endOffset, Splitter, carryInputData, GeometryType.LINESTRING); } -} \ No newline at end of file +} diff --git a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/PolygonFormatMapper.java b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/PolygonFormatMapper.java index f9fea17217..b6724e2cdd 100644 --- a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/PolygonFormatMapper.java +++ b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/PolygonFormatMapper.java @@ -50,4 +50,4 @@ public PolygonFormatMapper(Integer startOffset, Integer endOffset, FileDataSplit { super(startOffset, endOffset, Splitter, carryInputData, GeometryType.POLYGON); } -} \ No newline at end of file +} diff --git a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/ShapefileRDD.java b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/ShapefileRDD.java index ccd8d2add5..415b9e4d80 100644 --- a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/ShapefileRDD.java +++ b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/ShapefileRDD.java @@ -273,4 +273,4 @@ public BoundBox call(BoundBox box1, BoundBox box2) } else { return null; } } -} \ No newline at end of file +} diff --git a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapeInputFormat.java b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapeInputFormat.java index b688e928fc..d528b6db9e 100644 --- a/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapeInputFormat.java +++ b/spark/common/src/main/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapeInputFormat.java @@ -121,4 +121,3 @@ public List getSplits(JobContext job) return splits; } } - diff --git a/spark/common/src/main/java/org/apache/sedona/core/showcase/Example.java b/spark/common/src/main/java/org/apache/sedona/core/showcase/Example.java index e220d5d341..a9504f2273 100644 --- a/spark/common/src/main/java/org/apache/sedona/core/showcase/Example.java +++ b/spark/common/src/main/java/org/apache/sedona/core/showcase/Example.java @@ -377,4 +377,4 @@ public static void testLoadShapefileIntoPolygonRDD() e.printStackTrace(); } } -} \ No newline at end of file +} diff --git a/spark/common/src/main/java/org/apache/sedona/core/spatialRDD/PolygonRDD.java b/spark/common/src/main/java/org/apache/sedona/core/spatialRDD/PolygonRDD.java index 30461acb28..0ae8ea547b 100644 --- a/spark/common/src/main/java/org/apache/sedona/core/spatialRDD/PolygonRDD.java +++ b/spark/common/src/main/java/org/apache/sedona/core/spatialRDD/PolygonRDD.java @@ -187,4 +187,3 @@ public Polygon call(Polygon v1, Polygon v2) return result; } } - diff --git a/spark/common/src/main/java/org/apache/sedona/viz/core/BigBufferedImage.java b/spark/common/src/main/java/org/apache/sedona/viz/core/BigBufferedImage.java index 28d73b9b27..6dfc2750f3 100644 --- a/spark/common/src/main/java/org/apache/sedona/viz/core/BigBufferedImage.java +++ b/spark/common/src/main/java/org/apache/sedona/viz/core/BigBufferedImage.java @@ -546,4 +546,4 @@ private void disposeNow(final MappedByteBuffer[] disposedBuffer) } } } -} \ No newline at end of file +} diff --git a/spark/common/src/main/java/org/apache/sedona/viz/core/ImageSerializableWrapper.java b/spark/common/src/main/java/org/apache/sedona/viz/core/ImageSerializableWrapper.java index 3318e321e3..4cbd5c45c8 100644 --- a/spark/common/src/main/java/org/apache/sedona/viz/core/ImageSerializableWrapper.java +++ b/spark/common/src/main/java/org/apache/sedona/viz/core/ImageSerializableWrapper.java @@ -104,4 +104,4 @@ public String toString() "height=" + image.getHeight() + ')'; } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/sedona/python/wrapper/translation/PythonRDDToJavaConverter.scala b/spark/common/src/main/scala/org/apache/sedona/python/wrapper/translation/PythonRDDToJavaConverter.scala index 50dac332f2..fa88f1be8e 100644 --- a/spark/common/src/main/scala/org/apache/sedona/python/wrapper/translation/PythonRDDToJavaConverter.scala +++ b/spark/common/src/main/scala/org/apache/sedona/python/wrapper/translation/PythonRDDToJavaConverter.scala @@ -63,4 +63,3 @@ case class PythonRDDToJavaConverter(javaRDD: JavaRDD[Array[Byte]], geometrySeria finalGeom } } - diff --git a/spark/common/src/main/scala/org/apache/sedona/sql/SedonaSqlExtensions.scala b/spark/common/src/main/scala/org/apache/sedona/sql/SedonaSqlExtensions.scala index 4042646754..6304fa0b18 100644 --- a/spark/common/src/main/scala/org/apache/sedona/sql/SedonaSqlExtensions.scala +++ b/spark/common/src/main/scala/org/apache/sedona/sql/SedonaSqlExtensions.scala @@ -29,4 +29,4 @@ class SedonaSqlExtensions extends (SparkSessionExtensions => Unit) { _ => () }) } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/sedona/sql/UDF/UdfRegistrator.scala b/spark/common/src/main/scala/org/apache/sedona/sql/UDF/UdfRegistrator.scala index 8d631430b4..5475568486 100644 --- a/spark/common/src/main/scala/org/apache/sedona/sql/UDF/UdfRegistrator.scala +++ b/spark/common/src/main/scala/org/apache/sedona/sql/UDF/UdfRegistrator.scala @@ -46,4 +46,4 @@ Catalog.aggregateExpressions.foreach(f => sparkSession.udf.register(f.getClass.g Catalog.aggregateExpressions.foreach(f => sparkSession.sessionState.functionRegistry.dropFunction(FunctionIdentifier(f.getClass.getSimpleName))) // SPARK3 anchor //Catalog.aggregateExpressions_UDAF.foreach(f => sparkSession.sessionState.functionRegistry.dropFunction(FunctionIdentifier(f.getClass.getSimpleName))) // SPARK2 anchor } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/execution/SedonaSparkPlan.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/execution/SedonaSparkPlan.scala index f9e142963a..a19caf0653 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/execution/SedonaSparkPlan.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/execution/SedonaSparkPlan.scala @@ -45,4 +45,4 @@ trait SedonaBinaryExecNode extends SparkPlan { } protected def withNewChildrenInternal(newLeft: SparkPlan, newRight: SparkPlan): SparkPlan -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/AggregateFunctions.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/AggregateFunctions.scala index 426bd5dc2e..456cc0de29 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/AggregateFunctions.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/AggregateFunctions.scala @@ -167,4 +167,3 @@ class ST_Intersection_Aggr extends Aggregator[Geometry, Geometry, Geometry] with else buffer1.intersection(buffer2) } } - diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Constructors.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Constructors.scala index adfc963999..dfeb0370ce 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Constructors.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Constructors.scala @@ -291,4 +291,3 @@ case class ST_MLineFromText(inputExpressions: Seq[Expression]) copy(inputExpressions = newChildren) } } - diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala index 5e2b4e118b..5548343bb3 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Functions.scala @@ -1148,4 +1148,3 @@ case class ST_IsCollection(inputExpressions: Seq[Expression]) copy(inputExpressions = newChildren) } } - diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/GeometryFunctions.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/GeometryFunctions.scala index 89c3b6ee1f..fa8390a31e 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/GeometryFunctions.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/GeometryFunctions.scala @@ -40,4 +40,3 @@ case class RS_MinConvexHull(inputExpressions: Seq[Expression]) extends InferredE copy(inputExpressions = newChildren) } } - diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/IO.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/IO.scala index 1585f4c0d9..917f3314f9 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/IO.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/IO.scala @@ -66,5 +66,3 @@ case class RS_Array(inputExpressions: Seq[Expression]) copy(inputExpressions = newChildren) } } - - diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/PixelFunctionEditors.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/PixelFunctionEditors.scala index e191fc9d5b..10ea368ecf 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/PixelFunctionEditors.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/PixelFunctionEditors.scala @@ -40,4 +40,4 @@ case class RS_SetValue(inputExpressions: Seq[Expression]) extends InferredExpres protected def withNewChildrenInternal(newChildren: IndexedSeq[Expression]) = { copy(inputExpressions = newChildren) } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterBandEditors.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterBandEditors.scala index 4cdc3a9b8c..fa85469e1d 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterBandEditors.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterBandEditors.scala @@ -40,4 +40,4 @@ case class RS_AddBand(inputExpressions: Seq[Expression]) extends InferredExpress protected def withNewChildrenInternal(newChildren: IndexedSeq[Expression]) = { copy(inputExpressions = newChildren) } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterEditors.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterEditors.scala index b9c414089a..3b13e03101 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterEditors.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterEditors.scala @@ -43,4 +43,4 @@ case class RS_Resample(inputExpressions: Seq[Expression]) extends InferredExpres protected def withNewChildrenInternal(newChildren: IndexedSeq[Expression]) = { copy(inputExpressions = newChildren) } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterOutputs.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterOutputs.scala index 1fd872b572..cc4fd14b4a 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterOutputs.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterOutputs.scala @@ -62,4 +62,4 @@ case class RS_AsImage(inputExpressions: Seq[Expression]) extends InferredExpress protected def withNewChildrenInternal(newChildren: IndexedSeq[Expression]) = { copy(inputExpressions = newChildren) } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_aggregates.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_aggregates.scala index 553f7a0c7d..a1ac81d53f 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_aggregates.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_aggregates.scala @@ -52,4 +52,4 @@ object st_aggregates extends DataFrameAPI { val aggrFunc = udaf(new ST_Union_Aggr) aggrFunc(col(geometry)) } -} \ No newline at end of file +} diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_functions.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_functions.scala index ee2a371e76..e5497699c5 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_functions.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/st_functions.scala @@ -425,4 +425,4 @@ object st_functions extends DataFrameAPI { def ST_IsCollection(geometry: String): Column = wrapExpression[ST_IsCollection](geometry) } - \ No newline at end of file + diff --git a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/io/raster/RasterOptions.scala b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/io/raster/RasterOptions.scala index a518c0a3d7..4fda9bb98a 100644 --- a/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/io/raster/RasterOptions.scala +++ b/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/io/raster/RasterOptions.scala @@ -29,4 +29,4 @@ private[io] class RasterOptions(@transient private val parameters: CaseInsensiti val rasterPathField = parameters.get("pathField") // Column of the raster image itself val rasterField = parameters.get("rasterField") -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/TestBase.java b/spark/common/src/test/java/org/apache/sedona/core/TestBase.java index 74710da9b0..17d1b6459f 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/TestBase.java +++ b/spark/common/src/test/java/org/apache/sedona/core/TestBase.java @@ -55,4 +55,3 @@ protected static void deleteFile(String path) fileSystem.delete(new Path(path), true); } } - diff --git a/spark/common/src/test/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapefileRDDTest.java b/spark/common/src/test/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapefileRDDTest.java index 488ab8dfdc..2c2d4b7cad 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapefileRDDTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/formatMapper/shapefileParser/shapes/ShapefileRDDTest.java @@ -366,4 +366,4 @@ public void testParseBoundary() Assert.assertEquals(gtlbounds, myBounds); gtlReader.close(); } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/io/EarthdataHDFTest.java b/spark/common/src/test/java/org/apache/sedona/core/io/EarthdataHDFTest.java index e9d6e64910..6831012ea1 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/io/EarthdataHDFTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/io/EarthdataHDFTest.java @@ -174,4 +174,4 @@ public void testSpatialRangeQueryUsingIndex() assert resultSize > -1; } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringKnnTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringKnnTest.java index 72920c57d9..fb1733f475 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringKnnTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringKnnTest.java @@ -191,4 +191,4 @@ public void testSpatialKnnQueryUsingIndex() //System.out.println(result.get(0).getUserData().toString()); } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringRangeTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringRangeTest.java index 5ae9d5ba5f..000702a314 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringRangeTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/LineStringRangeTest.java @@ -188,4 +188,4 @@ public void testSpatialRangeQueryUsingIndex() } assert RangeQuery.SpatialRangeQuery(spatialRDD, queryEnvelope, false, true).take(10).get(1).getUserData().toString() != null; } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointKnnTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointKnnTest.java index 41c3ee51fe..c8b72c20df 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointKnnTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointKnnTest.java @@ -243,4 +243,4 @@ public void testSpatialKnnQueryTopKlargerThanRowNumber() assert result.size() == 1; } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointRangeTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointRangeTest.java index 8fccc90716..e26a70f7f2 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointRangeTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PointRangeTest.java @@ -184,4 +184,4 @@ public void testSpatialRangeQueryUsingIndex() assertEquals(resultSize, 2830); } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonKnnTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonKnnTest.java index 2631b100d6..2067078cc1 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonKnnTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonKnnTest.java @@ -233,4 +233,4 @@ public void testSpatialKNNCorrectness() } assert difference == 0; } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonRangeTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonRangeTest.java index c70d7c4168..bd42697a9b 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonRangeTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/PolygonRangeTest.java @@ -186,4 +186,4 @@ public void testSpatialRangeQueryUsingIndex() } assert RangeQuery.SpatialRangeQuery(spatialRDD, queryEnvelope, false, true).take(10).get(1).getUserData().toString() != null; } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleKnnTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleKnnTest.java index e43fe1c313..ed458e2ba1 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleKnnTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleKnnTest.java @@ -229,4 +229,4 @@ public void testSpatialKNNCorrectness() } assert difference == 0; } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleRangeTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleRangeTest.java index bd9f874d32..1fd43eff62 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleRangeTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialOperator/RectangleRangeTest.java @@ -216,4 +216,4 @@ public void testSpatialRangeQueryLeftCoveredByRightFalse() assertEquals(useIndexResultSize, notUseIndexResultSize); } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java index 08d2314b81..c4bff11c08 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadRectangleTest.java @@ -50,4 +50,4 @@ private QuadRectangle makeRect(double x, double y, double width, double height) { return new QuadRectangle(x, y, width, height); } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadTreeTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadTreeTest.java index 8c83a53657..90076a543f 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadTreeTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialPartitioning/quadtree/QuadTreeTest.java @@ -204,4 +204,4 @@ public void testQuadTreePartitionLineage() } } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/PointRDDTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/PointRDDTest.java index 7ec3cf7286..fc4647953c 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/PointRDDTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/PointRDDTest.java @@ -140,4 +140,4 @@ public void testBuildQuadtreeIndex() List result = spatialRDD.indexedRDD.take(1).get(0).query(spatialRDD.boundaryEnvelope); } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/RectangleRDDTest.java b/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/RectangleRDDTest.java index ef6bf6247d..9924307dfe 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/RectangleRDDTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/spatialRDD/RectangleRDDTest.java @@ -138,4 +138,4 @@ public void testBuildQuadtreeIndex() List result = spatialRDD.indexedRDD.take(1).get(0).query(spatialRDD.boundaryEnvelope); } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/utils/RDDSampleUtilsTest.java b/spark/common/src/test/java/org/apache/sedona/core/utils/RDDSampleUtilsTest.java index 812f20022d..c5ecc7047d 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/utils/RDDSampleUtilsTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/utils/RDDSampleUtilsTest.java @@ -71,4 +71,4 @@ private void assertFailure(int numPartitions, long totalNumberOfRecords, int giv // expected } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/core/utils/SedonaConfTest.java b/spark/common/src/test/java/org/apache/sedona/core/utils/SedonaConfTest.java index 000a1c5002..bf176638c0 100644 --- a/spark/common/src/test/java/org/apache/sedona/core/utils/SedonaConfTest.java +++ b/spark/common/src/test/java/org/apache/sedona/core/utils/SedonaConfTest.java @@ -59,4 +59,4 @@ public void testBytesFromString() { assertEquals(1024, SedonaConf.bytesFromString("1k")); assertEquals(2097152, SedonaConf.bytesFromString("2MB")); } -} \ No newline at end of file +} diff --git a/spark/common/src/test/java/org/apache/sedona/viz/NYCTripPointMapper.java b/spark/common/src/test/java/org/apache/sedona/viz/NYCTripPointMapper.java index f6744fc739..3591f437f8 100644 --- a/spark/common/src/test/java/org/apache/sedona/viz/NYCTripPointMapper.java +++ b/spark/common/src/test/java/org/apache/sedona/viz/NYCTripPointMapper.java @@ -70,4 +70,3 @@ public Iterator call(String line) return result.iterator(); } } - diff --git a/spark/common/src/test/scala/org/apache/sedona/sql/GeometrySample.scala b/spark/common/src/test/scala/org/apache/sedona/sql/GeometrySample.scala index 0e5edba7a3..0004314473 100644 --- a/spark/common/src/test/scala/org/apache/sedona/sql/GeometrySample.scala +++ b/spark/common/src/test/scala/org/apache/sedona/sql/GeometrySample.scala @@ -73,4 +73,3 @@ trait GeometrySample { lines.toList } } - diff --git a/spark/common/src/test/scala/org/apache/sedona/sql/functions/geohash/Fixtures.scala b/spark/common/src/test/scala/org/apache/sedona/sql/functions/geohash/Fixtures.scala index 6470e37fe2..70672043d2 100644 --- a/spark/common/src/test/scala/org/apache/sedona/sql/functions/geohash/Fixtures.scala +++ b/spark/common/src/test/scala/org/apache/sedona/sql/functions/geohash/Fixtures.scala @@ -69,4 +69,4 @@ object Fixtures extends TableDrivenPropertyChecks { def decodeGeoHash(geohash: String, precision: Int): Geometry = GeoHashDecoder.decode(geohash, precision) -} \ No newline at end of file +} diff --git a/spark/common/src/test/scala/org/apache/sedona/sql/ogc/GeometryTypesAndFunctionsTestScala.scala b/spark/common/src/test/scala/org/apache/sedona/sql/ogc/GeometryTypesAndFunctionsTestScala.scala index dbfb03a2a6..749e748806 100644 --- a/spark/common/src/test/scala/org/apache/sedona/sql/ogc/GeometryTypesAndFunctionsTestScala.scala +++ b/spark/common/src/test/scala/org/apache/sedona/sql/ogc/GeometryTypesAndFunctionsTestScala.scala @@ -557,4 +557,4 @@ class GeometryTypesAndFunctionsTestScala extends TestBaseScala with BeforeAndAft assert(actual == "POLYGON ((48 6, 52 18, 66 23, 73 9, 48 6))") } } -} \ No newline at end of file +} diff --git a/spark/common/src/test/scala/org/apache/sedona/sql/ogc/package-info.java b/spark/common/src/test/scala/org/apache/sedona/sql/ogc/package-info.java index cce4180c93..ed07598bc8 100644 --- a/spark/common/src/test/scala/org/apache/sedona/sql/ogc/package-info.java +++ b/spark/common/src/test/scala/org/apache/sedona/sql/ogc/package-info.java @@ -20,4 +20,4 @@ * This package contains compliance tests for OGC simple feature access part two version 1.2.1. * https://www.ogc.org/standards/sfs */ -package org.apache.sedona.sql.ogc; \ No newline at end of file +package org.apache.sedona.sql.ogc; diff --git a/spark/common/src/test/scala/org/apache/sedona/sql/rasterIOTest.scala b/spark/common/src/test/scala/org/apache/sedona/sql/rasterIOTest.scala index 2b2c1fd723..4c566ec7bd 100644 --- a/spark/common/src/test/scala/org/apache/sedona/sql/rasterIOTest.scala +++ b/spark/common/src/test/scala/org/apache/sedona/sql/rasterIOTest.scala @@ -133,4 +133,4 @@ class rasterIOTest extends TestBaseScala with BeforeAndAfter with GivenWhenThen } override def afterAll(): Unit = FileUtils.deleteDirectory(new File(tempDir)) -} \ No newline at end of file +} diff --git a/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetFilters.scala b/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetFilters.scala index e8964a09eb..ab76cabf61 100644 --- a/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetFilters.scala +++ b/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetFilters.scala @@ -637,4 +637,4 @@ class GeoParquetFilters( case _ => None } } -} \ No newline at end of file +} diff --git a/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala b/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala index 2d12073cf1..5c12bac07c 100644 --- a/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala +++ b/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala @@ -683,4 +683,4 @@ private[parquet] class GeoParquetRowConverter( override def end(): Unit = elementConverter.end() override def start(): Unit = elementConverter.start() } -} \ No newline at end of file +} diff --git a/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala b/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala index 10d5bfd3d5..11bfcfcabf 100644 --- a/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala +++ b/spark/spark-3.0/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala @@ -574,4 +574,3 @@ private[sql] object GeoParquetSchemaConverter { """.stripMargin.split("\n").mkString(" ").trim) } } - diff --git a/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala b/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala index 11ea325c75..ff8a19cdaa 100644 --- a/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala +++ b/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetRowConverter.scala @@ -683,4 +683,4 @@ private[parquet] class GeoParquetRowConverter( override def end(): Unit = elementConverter.end() override def start(): Unit = elementConverter.start() } -} \ No newline at end of file +} diff --git a/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala b/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala index 10d5bfd3d5..11bfcfcabf 100644 --- a/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala +++ b/spark/spark-3.4/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/GeoParquetSchemaConverter.scala @@ -574,4 +574,3 @@ private[sql] object GeoParquetSchemaConverter { """.stripMargin.split("\n").mkString(" ").trim) } } -