|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.apidb.v0_6.impl.FeatureHistoryPopulator<Te,Tf,Tdbf>
Te
- The type of entity to be populated.Tf
- The type of feature to be added.Tdbf
- The database feature class type. This is extensible to allow other attributes to be
added to features such as a sequence number.public class FeatureHistoryPopulator<Te extends Entity,Tf extends Storeable,Tdbf extends DbFeature<Tf>>
Populates entities with their features using a sorted data source.
Constructor Summary | |
---|---|
FeatureHistoryPopulator(ReleasableIterator<DbFeatureHistory<Tdbf>> source,
FeatureCollectionLoader<Te,Tf> featureLoader)
Creates a new instance. |
Method Summary | |
---|---|
void |
populateFeatures(Te entity)
Populates the specified entity. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureHistoryPopulator(ReleasableIterator<DbFeatureHistory<Tdbf>> source, FeatureCollectionLoader<Te,Tf> featureLoader)
source
- The feature source.featureLoader
- Provides access to the feature collection within the entity.Method Detail |
---|
public void populateFeatures(Te entity)
populateFeatures
in interface FeaturePopulator<Te extends Entity>
entity
- The entity to be populated.public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |