|
|||||||||
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.DeltaToDiffReader
public class DeltaToDiffReader
Takes an underlying full history delta stream and converts it into a diff stream. The difference between the two is that a delta stream may contain multiple changes for a single entity, a diff stream will contain a single change for the entity to get from the beginning to end point.
Constructor Summary | |
---|---|
DeltaToDiffReader(ReleasableIterator<ChangeContainer> sourceIterator)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
hasNext()
|
ChangeContainer |
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 DeltaToDiffReader(ReleasableIterator<ChangeContainer> sourceIterator)
sourceIterator
- An iterator containing the full history for entities.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<ChangeContainer>
public ChangeContainer next()
next
in interface java.util.Iterator<ChangeContainer>
public void remove()
remove
in interface java.util.Iterator<ChangeContainer>
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |