Klasse CDORevisionCrawler.OutputStreamHandler.IDMapper
java.lang.Object
org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.OutputStreamHandler.IDMapper
- Bekannte direkte Unterklassen:
CDORevisionCrawler.OutputStreamHandler.IDMapper.InMemory
- Umschließende Klasse:
CDORevisionCrawler.OutputStreamHandler
Abstract ID mapper for mapping real IDs to local IDs.
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final classIn-memory implementation of IDMapper. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract voidIterates over all real IDs that have been mapped.protected CDOIDReturns the next available local ID.abstract CDOIDLooks up the mapped local ID for a real ID.Maps a real ID to a new local ID.protected abstract voidRegisters a mapping from real ID to local ID.
-
Konstruktordetails
-
IDMapper
public IDMapper()Constructs an IDMapper.
-
-
Methodendetails
-
map
Maps a real ID to a new local ID.- Parameter:
realID- the real ID- Gibt zurück:
- the mapped local ID
-
lookup
Looks up the mapped local ID for a real ID.- Parameter:
realID- the real ID- Gibt zurück:
- the mapped local ID
-
forEach
Iterates over all real IDs that have been mapped.- Parameter:
realIDConsumer- the consumer for real IDs
-
register
Registers a mapping from real ID to local ID.- Parameter:
realID- the real IDlocalID- the local ID
-
getNextMappedID
Returns the next available local ID.- Gibt zurück:
- the next local ID
-