/** * {@inheritDoc} */ public T next() { T result; result = peekNext(); nextValue = null; nextValueAvailable = false; return result; }
/** * Creates a new instance. * * @param sourceIterator * An iterator containing full entity history ordered by type, identifier and * version. */ public EntityHistoryListReader(ReleasableIterator<ChangeContainer> sourceIterator) { this.sourceIterator = new PeekableIterator<ChangeContainer>(sourceIterator); }
/** * {@inheritDoc} */ @Override public void close() { sourceIterator.close(); } }
/** * {@inheritDoc} */ @Override public boolean hasNext() { return sourceIterator.hasNext(); }
/** * {@inheritDoc} */ @Override public boolean hasNext() { return sourceIterator.hasNext(); }
while (relationMemberReader.hasNext()) { DbFeature<RelationMember> wayNode; wayNode = relationMemberReader.peekNext(); relationMemberReader.next(); } else { break; while (relationMemberReader.hasNext() && relationMemberReader.peekNext().getEntityId() == relationId) { relationMembers.add(relationMemberReader.next());
/** * Creates a new instance. * * @param source * The feature source. * @param featureLoader * Provides access to the feature collection within the entity. */ public FeatureHistoryPopulator(ReleasableIterator<DbFeatureHistory<Tdbf>> source, FeatureCollectionLoader<Te, Tf> featureLoader) { this.source = new PeekableIterator<DbFeatureHistory<Tdbf>>(source); this.featureLoader = featureLoader; }
/** * {@inheritDoc} */ public void close() { sourceIterator.close(); } }
/** * {@inheritDoc} */ public T next() { T result; result = peekNext(); nextValue = null; nextValueAvailable = false; return result; }
/** * {@inheritDoc} */ @Override public void populateFeatures(Te entity) { // Add all applicable tags to the entity. while (source.hasNext() && source.peekNext().getFeature().getEntityId() == entity.getId() && source.peekNext().getVersion() == entity.getVersion()) { featureLoader.getFeatureCollection(entity).add(source.next().getFeature().getFeature()); } }
/** * Creates a new instance. * * @param sourceIterator * An iterator containing full entity history ordered by type, identifier and * version. */ public EntityHistoryListReader(ReleasableIterator<ChangeContainer> sourceIterator) { this.sourceIterator = new PeekableIterator<ChangeContainer>(sourceIterator); }
/** * {@inheritDoc} */ @Override public void close() { source.close(); } }
/** * {@inheritDoc} */ @Override public void populateFeatures(Te entity) { // Add all applicable tags to the entity. while (source.hasNext() && source.peekNext().getFeature().getEntityId() == entity.getId() && source.peekNext().getVersion() == entity.getVersion()) { featureLoader.getFeatureCollection(entity).add(source.next().getFeature().getFeature()); } }
/** * Creates a new instance. * * @param source * The feature source. * @param featureLoader * Provides access to the feature collection within the entity. */ public FeaturePopulatorImpl(ReleasableIterator<Tdbf> source, FeatureCollectionLoader<Te, Tf> featureLoader) { this.source = new PeekableIterator<Tdbf>(source); this.featureLoader = featureLoader; }