/** * {@inheritDoc} */ @Override public void process(BoundContainer boundContainer) { sink.process(boundContainer); }
/** * {@inheritDoc} */ public void process(NodeContainer container) { sink.process(container); }
/** * {@inheritDoc} */ public void process(RelationContainer container) { sink.process(container); }
/** * Processes an entity that exists on the base source but not the change * source. * * @param entityContainer * The entity to be processed. */ private void processBaseOnlyEntity(EntityContainer entityContainer) { // The base entity doesn't exist on the change source therefore we // simply pass it through. sink.process(entityContainer); }
/** * {@inheritDoc} */ public void process(EntityContainer entityContainer) { sink.process(entityContainer); }
/** * {@inheritDoc} */ public void process(BoundContainer boundContainer) { // By default, pass it on unchanged sink.process(boundContainer); }
/** * {@inheritDoc} */ public void process(BoundContainer boundContainer) { // By default, pass it on unchanged sink.process(boundContainer); }
/** * {@inheritDoc} */ public void process(BoundContainer boundContainer) { // By default, pass it on unchanged sink.process(boundContainer); }
/** * {@inheritDoc} */ public void process(BoundContainer boundContainer) { // By default, pass it on unchanged sink.process(boundContainer); }
/** * {@inheritDoc} */ public void process(BoundContainer boundContainer) { // By default, pass it on unchanged sink.process(boundContainer); }
/** * Sends a node to the sink. This will perform any necessary transformations on the node before * sending it. * * @param nodeContainer * Node to be sent. */ private void emitNode(NodeContainer nodeContainer) { sink.process(nodeContainer); }
@Override public void process(EntityContainer entityContainer) { if (boundProcessed) { sink.process(entityContainer); } else { // processFirstEntity will send all data downstream as needed processFirstEntity(entityContainer); boundProcessed = true; } }
@Override public void process(EntityContainer entityContainer) { EntityContainer output = processEntityContainer(entityContainer); if (output != null) { sink.process(output); } }
@Override public void process(EntityContainer entityContainer) { if (boundProcessed) { sink.process(entityContainer); } else { // processFirstEntity will send all data downstream as needed processFirstEntity(entityContainer); boundProcessed = true; } }
/** * {@inheritDoc} */ @Override public void end() { getSink().process(new BoundContainer(bound)); bound = null; }
/** * {@inheritDoc} */ public void end() { getSink().process(new RelationContainer(relation)); }
/** * {@inheritDoc} */ public void end() { getSink().process(new WayContainer(way)); }
/** * {@inheritDoc} */ @Override public void end() { getSink().process(new BoundContainer(bound)); bound = null; }
/** * {@inheritDoc} */ public void complete() { try (ReleasableIterator<EntityContainer> iterator = fileBasedSort.iterate()) { while (iterator.hasNext()) { sink.process(iterator.next()); } sink.complete(); } }