-
Notifications
You must be signed in to change notification settings - Fork 18
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
integrate ohsome filter #306
Conversation
avoids casting of result object -> good
still to improve, though: for example do not create a separate parser object for each request.
* rename variable to match code style guidelines * reoreder and complete javadoc at-clauses
were adapted from the current version used by the ohsome-api, with minor modifications
allowed are: a-z, A-Z, digits, colon, underscore and dash.
ce503b0
to
54a24df
Compare
only the regex pattern matching version doesn't have a corresponding solution in the new filter module, so marking all but that one as deprecated
documentation, examples (and benchmarks?) will be updated in a separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open ToDo:
- fix
"ohsome filter"
oshdb/oshdb-api/src/main/java/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducer.java
Line 2073 in 0f50415
* Performs optimizations when filtering by an "ohsome filter" expression. - missing
@Deprecated
?oshdb/oshdb-api/src/main/java/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapAggregator.java
Line 371 in 0f50415
public MapAggregator<U, X> osmTag(String key, Pattern valuePattern) { - missing
@Deprecated
?oshdb/oshdb-api/src/main/java/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducer.java
Line 599 in 0f50415
public MapReducer<X> osmTag(String key, Pattern valuePattern) { - change deprecation reference to new filter for all
where(…)
functions? This function and the following:oshdb/oshdb-api/src/main/java/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducerSettings.java
Line 149 in 0f50415
default M where(SerializablePredicate<OSMEntity> f) {
oshdb-api/src/main/java/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapAggregator.java
Show resolved
Hide resolved
We don't want to keep the ohsome-filter Changelog, correct? Removed in c15e945 |
not really – it's still available in the original repository for reference |
no, because the oshdb-filter doesn't have an equivalent for the |
ui, I totally forgot these still exist. I think it's time to drop them with 0.7, but let's do that in a separate PR |
add deprecation remarks there as well
see #302
New or changed dependencies:
Checklist
I have made corresponding changes to the documentationsee integrate ohsome filter #306 (comment)I have adjusted the examples and benchmark if necessarysee integrate ohsome filter #306 (comment)