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

19 wiersze
517 B
Java

package com.onthegomap.flatmap.reader.osm;
import com.onthegomap.flatmap.util.MemoryEstimator;
/**
* A user-defined class containing information about a relation that will be relevant during subsequent way processing.
* This is stored in-memory by {@link OsmReader} so keep it as compact as possible.
*/
public interface OsmRelationInfo extends MemoryEstimator.HasEstimate {
/** Returns the OSM ID of this relation. */
long id();
@Override
default long estimateMemoryUsageBytes() {
return 0;
}
}