Skip to content

Removing deprecate MapReducerSettings #442

@rtroilo

Description

@rtroilo

Removing deprecate MapReducerSettings methods is unfortunately not straight forward for example in
TestMapReducer.testOSMEntitySnapshotViewStream we got following query.

OSMEntitySnapshotView.on(oshdb)
  .osmType(type)
  .osmTag("highway") replace to -> filter("highway=*")
  .areaOfInterest(bbox)
  .timestamps(timestamps)
  .osmEntityFilter(entity -> entity.getId() == id)
  .groupByEntity()

will throw an

new UnsupportedOperationException(
          "groupByEntity() must be called before any `map` or `flatMap` "
              + "transformation functions have been set");

the reason for that is that filter(...) instead of osmTag(...) adds a mapping step at

which then conflicts with groupByEntity later on

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions