Пример #1
0
  private void sendWays() {
    ReleasableIterator<WayContainer> wayIterator = allWays.iterate();
    while (wayIterator.hasNext()) {
      WayContainer wayContainer = wayIterator.next();

      if (!isRequiredWay(wayContainer.getEntity())) continue;

      sink.process(wayContainer);
    }
    wayIterator.release();
  }
Пример #2
0
  /** {@inheritDoc} */
  public void process(WayContainer container) {
    Way way = container.getEntity();

    boolean matchesFilter = false;
    for (Tag tag : way.getTags()) {
      if (allowedKeys.contains(tag.getKey())) {
        matchesFilter = true;
        break;
      }
    }

    if (matchesFilter) {
      sink.process(container);
    }
  }
Пример #3
0
 /** {@inheritDoc} */
 public void process(WayContainer wayContainer) {
   changeWriter.write(wayContainer.getEntity(), action);
 }