github-advanced-security[bot] commented on code in PR #802:
URL:
https://github.com/apache/incubator-baremaps/pull/802#discussion_r1424102676
##########
baremaps-core/src/main/java/org/apache/baremaps/workflow/WorkflowContext.java:
##########
@@ -41,4 +65,45 @@
return dataSources.computeIfAbsent(database,
PostgresUtils::createDataSourceFromObject);
}
+ public DataMap<Long, Coordinate> getCoordinateMap(Path path) throws
IOException {
+ if (Files.size(path) > 1 << 30) {
+ return getMemoryAlignedDataMap("coordinates", new LonLatDataType());
+ } else {
+ return getMonotonicDataMap("coordinates", new LonLatDataType());
+ }
+ }
+
+ public DataMap<Long, List<Long>> getReferenceMap(Path path) throws
IOException {
Review Comment:
## Useless parameter
The parameter 'path' is never used.
[Show more
details](https://github.com/apache/incubator-baremaps/security/code-scanning/852)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]