-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parquet/no-build-tool java profile usability improvements (#914)
- Loading branch information
Showing
40 changed files
with
1,924 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
planetiler-core/src/main/java/com/onthegomap/planetiler/FeatureProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.onthegomap.planetiler; | ||
|
||
import com.onthegomap.planetiler.reader.SourceFeature; | ||
|
||
/** | ||
* Subcomponent of {@link Profile} that handles processing layers from a feature, and optionally when that source is | ||
* finished. | ||
*/ | ||
@FunctionalInterface | ||
public interface FeatureProcessor<T extends SourceFeature> { | ||
|
||
/** | ||
* Generates output features for any input feature that should appear in the map. | ||
* <p> | ||
* Multiple threads may invoke this method concurrently for a single data source so implementations should ensure | ||
* thread-safe access to any shared data structures. Separate data sources are processed sequentially. | ||
* <p> | ||
* All OSM nodes are processed first, then ways, then relations. | ||
* | ||
* @param sourceFeature the input feature from a source dataset (OSM element, shapefile element, etc.) | ||
* @param features a collector for generating output map features to emit | ||
*/ | ||
void processFeature(T sourceFeature, FeatureCollector features); | ||
} |
Oops, something went wrong.