public abstract class AbstractEntityCollector extends AbstractExecutableSingleInputStreamSingleOutput implements OsmHandler
Modifier and Type | Field and Description |
---|---|
protected TLongSet |
ids |
protected Iterator<EntityContainer> |
iteratorReferences |
closeOutput, osmOutputStream, out, pathOutput
closeInput, osmStream, pathInput
inputFormat, outputFormat, pbfConfig, readMetadata, readTags, tboConfig, writeMetadata
line, options
Constructor and Description |
---|
AbstractEntityCollector() |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
void |
handle(OsmBounds bounds) |
void |
handle(OsmNode node) |
void |
handle(OsmRelation relation) |
void |
handle(OsmWay way) |
protected void |
init() |
protected abstract void |
readReferences() |
protected void |
run() |
protected void |
setup(String[] args) |
protected abstract boolean |
take(OsmNode node) |
protected abstract boolean |
take(OsmRelation relation) |
protected abstract boolean |
take(OsmWay way) |
finish
createIterator, createReader
getHelpMessage
protected Iterator<EntityContainer> iteratorReferences
protected TLongSet ids
protected void setup(String[] args)
setup
in class AbstractExecutableSingleInputStreamSingleOutput
protected void init() throws IOException
init
in class AbstractExecutableSingleInputStreamSingleOutput
IOException
protected void run() throws OsmInputException, IOException
OsmInputException
IOException
public void handle(OsmBounds bounds) throws IOException
handle
in interface OsmHandler
IOException
public void handle(OsmNode node) throws IOException
handle
in interface OsmHandler
IOException
public void handle(OsmWay way) throws IOException
handle
in interface OsmHandler
IOException
public void handle(OsmRelation relation) throws IOException
handle
in interface OsmHandler
IOException
public void complete() throws IOException
complete
in interface OsmHandler
IOException
protected abstract void readReferences()
protected abstract boolean take(OsmNode node)
protected abstract boolean take(OsmWay way)
protected abstract boolean take(OsmRelation relation)