C# Class Raven.Database.Indexing.IndexingExecuter

Inheritance: AbstractIndexingExecuter
Datei anzeigen Open project: robashton/ravendb Class Usage Examples

Public Methods

Method Description
IndexingExecuter ( WorkContext context, DatabaseEtagSynchronizer synchronizer, Prefetcher prefetcher ) : System

Protected Methods

Method 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

Method 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 method

protected CalculateSynchronizationEtag ( Etag currentEtag, Etag lastProcessedEtag ) : Etag
currentEtag Raven.Abstractions.Util.Etag
lastProcessedEtag Raven.Abstractions.Util.Etag
return Raven.Abstractions.Util.Etag

Dispose() protected method

protected Dispose ( ) : void
return void

ExecuteIndexingWork() protected method

protected ExecuteIndexingWork ( IList indexesToWorkOn, Etag startEtag ) : void
indexesToWorkOn IList
startEtag Raven.Abstractions.Util.Etag
return void

FlushAllIndexes() protected method

protected FlushAllIndexes ( ) : void
return void

GetApplicableTask() protected method

protected GetApplicableTask ( IStorageActionsAccessor actions ) : Task
actions IStorageActionsAccessor
return Raven.Database.Tasks.Task

GetIndexToWorkOn() protected method

protected GetIndexToWorkOn ( IndexStats indexesStat ) : IndexToWorkOn
indexesStat IndexStats
return IndexToWorkOn

GetSynchronizationEtag() protected method

protected GetSynchronizationEtag ( ) : Etag
return Etag

IndexingExecuter() public method

public IndexingExecuter ( WorkContext context, DatabaseEtagSynchronizer synchronizer, Prefetcher prefetcher ) : System
context WorkContext
synchronizer DatabaseEtagSynchronizer
prefetcher Prefetcher
return System

Init() protected method

protected Init ( ) : void
return void

IsIndexStale() protected method

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

IsValidIndex() protected method

protected IsValidIndex ( IndexStats indexesStat ) : bool
indexesStat IndexStats
return bool