Skip to content

Commit

Permalink
Format code with spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed May 30, 2024
1 parent 4b4bb64 commit a838fd0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

public class GeoParquetTypeConversion {

private GeoParquetTypeConversion() {
}
private GeoParquetTypeConversion() {}

public static DataRowType asDataRowType(String table, Schema schema) {
List<DataColumn> fields = schema.fields().stream()
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ public boolean tryAdvance(Consumer<? super GeoParquetGroup> action) {
}

private ParquetReader<GeoParquetGroup> 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
Expand Down

0 comments on commit a838fd0

Please sign in to comment.