planetiler/flatmap-core/src/main/java/com/onthegomap/flatmap/reader/osm/OsmSource.java

17 wiersze
571 B
Java
Czysty Zwykły widok Historia

2021-08-06 09:56:24 +00:00
package com.onthegomap.flatmap.reader.osm;
2021-05-28 10:08:13 +00:00
import com.graphhopper.reader.ReaderElement;
2021-08-05 11:09:52 +00:00
import com.onthegomap.flatmap.worker.WorkerPipeline;
2021-05-28 10:08:13 +00:00
public interface OsmSource {
2021-09-10 00:46:20 +00:00
/**
* Returns a source that initiates a {@link WorkerPipeline} with raw OSM elements.
*
* @param poolName string ID used when creating worker threads to decode OSM blocks
* @param threads maximum number of threads to use when processing elements in parallel
* @return work for a source thread
*/
2021-08-05 11:09:52 +00:00
WorkerPipeline.SourceStep<ReaderElement> read(String poolName, int threads);
2021-05-28 10:08:13 +00:00
}