-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geoparquet filtering and simplification #895
Conversation
bchapuis
commented
Oct 10, 2024
•
edited by sebr72
Loading
edited by sebr72
- Adds bbox based filtering capabilities to the geoparquet reader, hence loading only relevant records to the db.
- Simplifies the object model to minimize the creation of wrappers and arrays to hold values.
- Removes unused classes and methods related to the geoparquet writer.
baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/GeoParquetGroup.java
Fixed
Show fixed
Hide fixed
} | ||
|
||
private FileInfo getFileInfo(FileStatus fileStatus) { | ||
try { | ||
return buildFileInfo(fileStatus); | ||
ParquetMetadata parquetMetadata = | ||
ParquetFileReader.readFooter(configuration, fileStatus.getPath()); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
ParquetFileReader.readFooter
07f53a3
to
930cc0f
Compare
2703d41
to
b4a5f1a
Compare
b4a5f1a
to
ffbc74c
Compare
c602218
to
1f9cc17
Compare
...marking/src/main/java/org/apache/baremaps/benchmarking/geoparquet/OvertureMapsBenchmark.java
Fixed
Show fixed
Hide fixed
...marking/src/main/java/org/apache/baremaps/benchmarking/geoparquet/OvertureMapsBenchmark.java
Fixed
Show fixed
Hide fixed
...nchmarking/src/main/java/org/apache/baremaps/benchmarking/geoparquet/SmallFileBenchmark.java
Fixed
Show fixed
Hide fixed
...nchmarking/src/main/java/org/apache/baremaps/benchmarking/geoparquet/SmallFileBenchmark.java
Fixed
Show fixed
Hide fixed
@sebr72 I hope you are doing well. I refactored the GeoParquetGroup so that we don't need wrapper objects and instantiate arrays only when it is necessary. I also adapted the spliterator so that we can filter the files and the records based on their respective bbox. Please let me now what you think about these changes. |
e00983f
to
5ea6c90
Compare
5ea6c90
to
985ef2c
Compare
42eacb7
to
cdb9f6a
Compare
Quality Gate passedIssues Measures |