|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.mysql.v0_5.impl.EntitySnapshotReader<T>
T - The data type to be read.public class EntitySnapshotReader<T extends Entity>
Reads a complete snapshot of an entity type based on the complete history of an entity type.
| Constructor Summary | |
|---|---|
EntitySnapshotReader(PeekableIterator<EntityHistory<T>> entityIterator,
java.util.Date snapshotInstant,
java.util.Comparator<EntityHistory<T>> resultOrdering)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntitySnapshotReader(PeekableIterator<EntityHistory<T>> entityIterator,
java.util.Date snapshotInstant,
java.util.Comparator<EntityHistory<T>> resultOrdering)
entityIterator - An iterator containing the full history for an entity type
ordered by identifier.snapshotInstant - The state of the entity at this point in time will be dumped.
This ensures a consistent snapshot.resultOrdering - This provides a way of sorting the history records for a
single entity, it may be null if no sorting is required.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T extends Entity>public T next()
next in interface java.util.Iterator<T extends Entity>public void remove()
remove in interface java.util.Iterator<T extends Entity>public void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||