C# Class Raven.Database.Indexing.BaseBatchSizeAutoTuner

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

Protected Properties

Свойство Type Description
context WorkContext

Méthodes publiques

Méthode Description
AutoThrottleBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : void
OutOfMemoryExceptionHappened ( ) : void

This let us know that an OOME has happened, and we need to be much more conservative with regards to how fast we can grow memory.

Méthodes protégées

Méthode Description
BaseBatchSizeAutoTuner ( WorkContext context ) : System
GetLastAmountOfItems ( ) : IEnumerable
RecordAmountOfItems ( int numberOfItems ) : void

Private Methods

Méthode Description
ConsiderDecreasingBatchSize ( int amountOfItemsToIndex, System.TimeSpan indexingDuration ) : bool
ConsiderIncreasingBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : bool
ReduceBatchSizeIfCloseToMemoryCeiling ( ) : bool

Method Details

AutoThrottleBatchSize() public méthode

public AutoThrottleBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : void
amountOfItemsToIndex int
size long
indexingDuration System.TimeSpan
Résultat void

BaseBatchSizeAutoTuner() protected méthode

protected BaseBatchSizeAutoTuner ( WorkContext context ) : System
context WorkContext
Résultat System

GetLastAmountOfItems() protected abstract méthode

protected abstract GetLastAmountOfItems ( ) : IEnumerable
Résultat IEnumerable

OutOfMemoryExceptionHappened() public méthode

This let us know that an OOME has happened, and we need to be much more conservative with regards to how fast we can grow memory.
public OutOfMemoryExceptionHappened ( ) : void
Résultat void

RecordAmountOfItems() protected abstract méthode

protected abstract RecordAmountOfItems ( int numberOfItems ) : void
numberOfItems int
Résultat void

Property Details

context protected_oe property

protected WorkContext,Raven.Database.Indexing context
Résultat WorkContext