C# Class Raven.Database.Indexing.IndexingExecuter

Inheritance: AbstractIndexingExecuter
Afficher le fichier Open project: robashton/ravendb Class Usage Examples

Méthodes publiques

Méthode Description
IndexingExecuter ( WorkContext context, DatabaseEtagSynchronizer synchronizer, Prefetcher prefetcher ) : System

Méthodes protégées

Méthode Description
CalculateSynchronizationEtag ( Etag currentEtag, Etag lastProcessedEtag ) : Etag
Dispose ( ) : void
ExecuteIndexingWork ( IList indexesToWorkOn, Etag startEtag ) : void
FlushAllIndexes ( ) : void
GetApplicableTask ( IStorageActionsAccessor actions ) : Task
GetIndexToWorkOn ( IndexStats indexesStat ) : IndexToWorkOn
GetSynchronizationEtag ( ) : Etag
Init ( ) : void
IsIndexStale ( IndexStats indexesStat, Etag synchronizationEtag, IStorageActionsAccessor actions, bool isIdle, Reference onlyFoundIdleWork ) : bool
IsValidIndex ( IndexStats indexesStat ) : bool

Private Methods

Méthode Description
DoActualIndexing ( IList indexesToWorkOn, List jsonDocs ) : Etag
ExecuteAllInterleaved ( IList result, Action action ) : void
FilterIndexes ( IList indexesToWorkOn, List jsonDocs, Etag highestETagInBatch ) : IEnumerable
HandleIndexingFor ( IndexingBatchForIndex batchForIndex, Etag lastEtag, DateTime lastModified ) : void
IndexDocuments ( IStorageActionsAccessor actions, string index, IndexingBatch batch ) : void
SortResultsMixedAccordingToTimePerDoc ( IList result ) : void

Method Details

CalculateSynchronizationEtag() protected méthode

protected CalculateSynchronizationEtag ( Etag currentEtag, Etag lastProcessedEtag ) : Etag
currentEtag Raven.Abstractions.Util.Etag
lastProcessedEtag Raven.Abstractions.Util.Etag
Résultat Raven.Abstractions.Util.Etag

Dispose() protected méthode

protected Dispose ( ) : void
Résultat void

ExecuteIndexingWork() protected méthode

protected ExecuteIndexingWork ( IList indexesToWorkOn, Etag startEtag ) : void
indexesToWorkOn IList
startEtag Raven.Abstractions.Util.Etag
Résultat void

FlushAllIndexes() protected méthode

protected FlushAllIndexes ( ) : void
Résultat void

GetApplicableTask() protected méthode

protected GetApplicableTask ( IStorageActionsAccessor actions ) : Task
actions IStorageActionsAccessor
Résultat Raven.Database.Tasks.Task

GetIndexToWorkOn() protected méthode

protected GetIndexToWorkOn ( IndexStats indexesStat ) : IndexToWorkOn
indexesStat IndexStats
Résultat IndexToWorkOn

GetSynchronizationEtag() protected méthode

protected GetSynchronizationEtag ( ) : Etag
Résultat Etag

IndexingExecuter() public méthode

public IndexingExecuter ( WorkContext context, DatabaseEtagSynchronizer synchronizer, Prefetcher prefetcher ) : System
context WorkContext
synchronizer DatabaseEtagSynchronizer
prefetcher Prefetcher
Résultat System

Init() protected méthode

protected Init ( ) : void
Résultat void

IsIndexStale() protected méthode

protected IsIndexStale ( IndexStats indexesStat, Etag synchronizationEtag, IStorageActionsAccessor actions, bool isIdle, Reference onlyFoundIdleWork ) : bool
indexesStat IndexStats
synchronizationEtag Etag
actions IStorageActionsAccessor
isIdle bool
onlyFoundIdleWork Reference
Résultat bool

IsValidIndex() protected méthode

protected IsValidIndex ( IndexStats indexesStat ) : bool
indexesStat IndexStats
Résultat bool