C# Class Raven.Database.Prefetching.PrefetchingBehavior

Inheritance: IDisposable, ILowMemoryHandler
显示文件 Open project: robashton/ravendb Class Usage Examples

Public Methods

Method Description
AfterDelete ( string key, Etag deletedEtag ) : void
AfterStorageCommitBeforeWorkNotifications ( JsonDocument docs ) : void
AfterUpdate ( string key, Etag etagBeforeUpdate ) : void
BatchProcessingComplete ( ) : void
CleanupDocuments ( Etag lastIndexedEtag ) : void
Dispose ( ) : void
FilterDocuments ( JsonDocument document ) : bool
GetDocumentsBatchFrom ( Etag etag ) : List
GetHighestJsonDocumentByEtag ( List past ) : JsonDocument
PrefetchingBehavior ( WorkContext context, BaseBatchSizeAutoTuner autoTuner ) : System
ShouldSkipDeleteFromIndex ( JsonDocument item ) : bool
UpdateAutoThrottler ( List jsonDocs, System.TimeSpan indexingDuration ) : void

Private Methods

Method Description
CanBeConsideredAsDuplicate ( JsonDocument document ) : bool
GetDocsFromBatchWithPossibleDuplicates ( Etag etag ) : List
GetHighestEtag ( List past ) : Etag
GetJsonDocsFromDisk ( Etag etag, Etag untilEtag ) : List
GetNextDocEtag ( Etag etag ) : Etag
GetNextDocumentEtagFromDisk ( Etag etag ) : Etag
HandleEtagGapsIfNeeded ( Etag nextEtag ) : Etag
LoadDocumentsFromDisk ( Etag etag, Etag untilEtag ) : void
MaybeAddFutureBatch ( List past ) : void
ObserveDiscardedTask ( FutureIndexBatch source ) : Task
SkipDeletedEtags ( Etag nextEtag ) : Etag
SkipUpdatedEtags ( Etag nextEtag ) : Etag
TryGetDocumentsFromQueue ( Etag nextDocEtag, List &items ) : bool
TryLoadDocumentsFromFutureBatches ( Etag nextDocEtag ) : bool

Method Details

AfterDelete() public method

public AfterDelete ( string key, Etag deletedEtag ) : void
key string
deletedEtag Raven.Abstractions.Util.Etag
return void

AfterStorageCommitBeforeWorkNotifications() public method

public AfterStorageCommitBeforeWorkNotifications ( JsonDocument docs ) : void
docs Raven.Abstractions.Data.JsonDocument
return void

AfterUpdate() public method

public AfterUpdate ( string key, Etag etagBeforeUpdate ) : void
key string
etagBeforeUpdate Raven.Abstractions.Util.Etag
return void

BatchProcessingComplete() public method

public BatchProcessingComplete ( ) : void
return void

CleanupDocuments() public method

public CleanupDocuments ( Etag lastIndexedEtag ) : void
lastIndexedEtag Raven.Abstractions.Util.Etag
return void

Dispose() public method

public Dispose ( ) : void
return void

FilterDocuments() public method

public FilterDocuments ( JsonDocument document ) : bool
document Raven.Abstractions.Data.JsonDocument
return bool

GetDocumentsBatchFrom() public method

public GetDocumentsBatchFrom ( Etag etag ) : List
etag Raven.Abstractions.Util.Etag
return List

GetHighestJsonDocumentByEtag() public static method

public static GetHighestJsonDocumentByEtag ( List past ) : JsonDocument
past List
return Raven.Abstractions.Data.JsonDocument

PrefetchingBehavior() public method

public PrefetchingBehavior ( WorkContext context, BaseBatchSizeAutoTuner autoTuner ) : System
context Raven.Database.Indexing.WorkContext
autoTuner Raven.Database.Indexing.BaseBatchSizeAutoTuner
return System

ShouldSkipDeleteFromIndex() public method

public ShouldSkipDeleteFromIndex ( JsonDocument item ) : bool
item Raven.Abstractions.Data.JsonDocument
return bool

UpdateAutoThrottler() public method

public UpdateAutoThrottler ( List jsonDocs, System.TimeSpan indexingDuration ) : void
jsonDocs List
indexingDuration System.TimeSpan
return void