Class CDORevisionCrawler.OutputStreamHandler.IDMapper.InMemory
java.lang.Object
org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.OutputStreamHandler.IDMapper
org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.OutputStreamHandler.IDMapper.InMemory
- Enclosing class:
CDORevisionCrawler.OutputStreamHandler.IDMapper
public static final class CDORevisionCrawler.OutputStreamHandler.IDMapper.InMemory
extends CDORevisionCrawler.OutputStreamHandler.IDMapper
In-memory implementation of IDMapper.
Stores all mappings in memory using a LinkedHashMap to preserve insertion order.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.OutputStreamHandler.IDMapper
CDORevisionCrawler.OutputStreamHandler.IDMapper.InMemory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIterates over all real IDs that have been mapped.Looks up the mapped local ID for a real ID.protected voidRegisters a mapping from real ID to local ID.Methods inherited from class org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.OutputStreamHandler.IDMapper
getNextMappedID, map
-
Constructor Details
-
InMemory
public InMemory()Constructs an in-memory IDMapper.
-
-
Method Details
-
lookup
Looks up the mapped local ID for a real ID.- Specified by:
lookupin classCDORevisionCrawler.OutputStreamHandler.IDMapper- Parameters:
realID- the real ID- Returns:
- the mapped local ID
-
forEach
Iterates over all real IDs that have been mapped.- Specified by:
forEachin classCDORevisionCrawler.OutputStreamHandler.IDMapper- Parameters:
realIDConsumer- the consumer for real IDs
-
register
Registers a mapping from real ID to local ID.- Specified by:
registerin classCDORevisionCrawler.OutputStreamHandler.IDMapper- Parameters:
realID- the real IDmappedID- the local ID
-