public abstract class AbstractWaysDistributor extends Object implements WaysDistributor
Modifier and Type | Field and Description |
---|---|
protected Map<Node,OsmStreamOutput> |
outputsNodes |
protected Map<Node,OsmStreamOutput> |
outputsWays |
protected boolean |
stopped |
Constructor and Description |
---|
AbstractWaysDistributor(Path pathTree,
String fileNamesNodes1,
String fileNamesNodes2,
String fileNamesWays,
String fileNamesOutputWays,
String fileNamesOutputNodes,
FileFormat inputFormatNodes,
FileFormat inputFormatWays,
OsmOutputConfig outputConfig) |
Modifier and Type | Method and Description |
---|---|
protected void |
build(Node leaf,
OsmWay way,
OsmEntityProvider entityProvider) |
protected void |
distribute() |
void |
execute() |
protected void |
finish() |
protected abstract void |
leafData(LeafData leafData) |
protected void |
prepare() |
protected abstract void |
write(Node leaf,
OsmWay way,
TLongObjectMap<OsmNode> nodes) |
protected Map<Node,OsmStreamOutput> outputsWays
protected Map<Node,OsmStreamOutput> outputsNodes
protected boolean stopped
public AbstractWaysDistributor(Path pathTree, String fileNamesNodes1, String fileNamesNodes2, String fileNamesWays, String fileNamesOutputWays, String fileNamesOutputNodes, FileFormat inputFormatNodes, FileFormat inputFormatWays, OsmOutputConfig outputConfig)
public void execute() throws IOException
execute
in interface Task
IOException
protected void prepare() throws IOException
IOException
protected void finish() throws IOException
IOException
protected abstract void leafData(LeafData leafData) throws IOException
IOException
protected abstract void write(Node leaf, OsmWay way, TLongObjectMap<OsmNode> nodes) throws IOException
IOException
protected void distribute() throws IOException
IOException
protected void build(Node leaf, OsmWay way, OsmEntityProvider entityProvider) throws IOException
IOException