Klasse CDORevisionCrawler.OutputStreamHandler
java.lang.Object
org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.OutputStreamHandler
- Alle implementierten Schnittstellen:
CDORevisionCrawler.Handler
- Bekannte direkte Unterklassen:
CDORevisionCrawler.MessageDigestHandler
- Umschließende Klasse:
CDORevisionCrawler
public static class CDORevisionCrawler.OutputStreamHandler
extends Object
implements CDORevisionCrawler.Handler
Handler implementation that writes crawl data to an output stream.
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classAbstract ID mapper for mapping real IDs to local IDs. -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungOutputStreamHandler(OutputStream stream) Constructs an OutputStreamHandler with the given output stream.OutputStreamHandler(OutputStream stream, boolean localIDs, CDOLobLoader lobLoader) Constructs an OutputStreamHandler with local ID mapping and optional LOB loader.OutputStreamHandler(OutputStream stream, CDORevisionCrawler.OutputStreamHandler.IDMapper idMapper, CDOLobLoader lobLoader) Constructs an OutputStreamHandler with custom ID mapper and optional LOB loader.protectedConstructs an OutputStreamHandler with the given data output and ID mapper. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbegin(CDORevisionCrawler crawler) Called when crawling begins.final booleanbeginRevision(CDORevision revision) Called when a revision is about to be processed.protected booleandoBeginRevision(CDORevision revision) Performs finishing logic for the given revision.protected voiddoEndRevision(CDORevision revision) Performs ending logic for the given revision.protected voiddoHandleFeature(CDORevision revision, EStructuralFeature feature) Performs feature handling logic for the given revision and feature.final voidendRevision(CDORevision revision) Called when a revision has been processed.final voidPerforms the second phase for local ID mapping, writing features for all mapped revisions.Returns the local ID mapper used by this handler, if any.final voidhandleFeature(CDORevision revision, EStructuralFeature feature) Called for each feature to be handled.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.revision.CDORevisionCrawler.Handler
finish
-
Konstruktordetails
-
OutputStreamHandler
Constructs an OutputStreamHandler with the given output stream.- Parameter:
stream- the output stream
-
OutputStreamHandler
Constructs an OutputStreamHandler with local ID mapping and optional LOB loader.- Parameter:
stream- the output streamlocalIDs- true to use local IDslobLoader- the LOB loader, may be null
-
OutputStreamHandler
public OutputStreamHandler(OutputStream stream, CDORevisionCrawler.OutputStreamHandler.IDMapper idMapper, CDOLobLoader lobLoader) Constructs an OutputStreamHandler with custom ID mapper and optional LOB loader.- Parameter:
stream- the output streamidMapper- the ID mapperlobLoader- the LOB loader, may be null
-
OutputStreamHandler
protected OutputStreamHandler(CDODataOutput out, CDORevisionCrawler.OutputStreamHandler.IDMapper idMapper) Constructs an OutputStreamHandler with the given data output and ID mapper.
-
-
Methodendetails
-
getLocalIDMapper
Returns the local ID mapper used by this handler, if any. -
begin
Beschreibung aus Schnittstelle kopiert:CDORevisionCrawler.HandlerCalled when crawling begins.- Angegeben von:
beginin SchnittstelleCDORevisionCrawler.Handler- Parameter:
crawler- the crawler instance- Gibt zurück:
- true to continue crawling
-
beginRevision
Beschreibung aus Schnittstelle kopiert:CDORevisionCrawler.HandlerCalled when a revision is about to be processed.- Angegeben von:
beginRevisionin SchnittstelleCDORevisionCrawler.Handler- Parameter:
revision- the revision- Gibt zurück:
- true to continue crawling
-
handleFeature
Beschreibung aus Schnittstelle kopiert:CDORevisionCrawler.HandlerCalled for each feature to be handled.- Angegeben von:
handleFeaturein SchnittstelleCDORevisionCrawler.Handler- Parameter:
revision- the revisionfeature- the feature
-
endRevision
Beschreibung aus Schnittstelle kopiert:CDORevisionCrawler.HandlerCalled when a revision has been processed.- Angegeben von:
endRevisionin SchnittstelleCDORevisionCrawler.Handler- Parameter:
revision- the revision
-
finishLocalIDs
public final void finishLocalIDs()Performs the second phase for local ID mapping, writing features for all mapped revisions. -
doBeginRevision
Performs finishing logic for the given revision. -
doHandleFeature
Performs feature handling logic for the given revision and feature. -
doEndRevision
Performs ending logic for the given revision.
-