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

public abstract static class CDORevisionCrawler.OutputStreamHandler.IDMapper extends Object
Abstract ID mapper for mapping real IDs to local IDs.
Autor:
Eike Stepper
  • Konstruktordetails

    • IDMapper

      public IDMapper()
      Constructs an IDMapper.
  • Methodendetails

    • map

      public CDOID map(CDOID realID)
      Maps a real ID to a new local ID.
      Parameter:
      realID - the real ID
      Gibt zurück:
      the mapped local ID
    • lookup

      public abstract CDOID lookup(CDOID realID)
      Looks up the mapped local ID for a real ID.
      Parameter:
      realID - the real ID
      Gibt zurück:
      the mapped local ID
    • forEach

      public abstract void forEach(Consumer<? super CDOID> realIDConsumer)
      Iterates over all real IDs that have been mapped.
      Parameter:
      realIDConsumer - the consumer for real IDs
    • register

      protected abstract void register(CDOID realID, CDOID localID)
      Registers a mapping from real ID to local ID.
      Parameter:
      realID - the real ID
      localID - the local ID
    • getNextMappedID

      protected CDOID getNextMappedID()
      Returns the next available local ID.
      Gibt zurück:
      the next local ID