diff --git a/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetDataTable.java b/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetDataTable.java index a6281b0e2..5fbd4b9dc 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetDataTable.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetDataTable.java @@ -101,7 +101,7 @@ public DataRowType rowType() { rowType = GeoParquetTypeConversion.asDataRowType(path.toString(), schema); return rowType; } catch (URISyntaxException e) { - throw new GeoParquetException("Fail toe get the schema.", e); + throw new GeoParquetException("Fail toe get the schema.", e); } } return rowType; diff --git a/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetTypeConversion.java b/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetTypeConversion.java index 163ecb8cd..d0f2f2b90 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetTypeConversion.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/storage/geoparquet/GeoParquetTypeConversion.java @@ -30,8 +30,7 @@ public class GeoParquetTypeConversion { - private GeoParquetTypeConversion() { - } + private GeoParquetTypeConversion() {} public static DataRowType asDataRowType(String table, Schema schema) { List fields = schema.fields().stream() diff --git a/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetException.java b/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetException.java index 87f7d899a..2de65da36 100644 --- a/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetException.java +++ b/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetException.java @@ -1,11 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to you 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 org.apache.baremaps.geoparquet; public class GeoParquetException extends RuntimeException { - public GeoParquetException(String message) { - super(message); - } + public GeoParquetException(String message) { + super(message); + } - public GeoParquetException(String message, Throwable cause) { - super(message, cause); - } + public GeoParquetException(String message, Throwable cause) { + super(message, cause); + } } diff --git a/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetReader.java b/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetReader.java index 6d0104bd3..ee8a7da5d 100644 --- a/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetReader.java +++ b/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetReader.java @@ -209,11 +209,11 @@ public boolean tryAdvance(Consumer action) { } private ParquetReader createParquetReader(FileStatus file) - throws IOException { + throws IOException { return ParquetReader - .builder(new GeoParquetGroupReadSupport(), file.getPath()) - .withConf(configuration) - .build(); + .builder(new GeoParquetGroupReadSupport(), file.getPath()) + .withConf(configuration) + .build(); } @Override