C# Класс Raven.Database.Indexing.BaseBatchSizeAutoTuner

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
context WorkContext

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
BaseBatchSizeAutoTuner ( WorkContext context ) : System
GetLastAmountOfItems ( ) : IEnumerable
RecordAmountOfItems ( int numberOfItems ) : void

Приватные методы

Метод Описание
ConsiderDecreasingBatchSize ( int amountOfItemsToIndex, System.TimeSpan indexingDuration ) : bool
ConsiderIncreasingBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : bool
ReduceBatchSizeIfCloseToMemoryCeiling ( ) : bool

Описание методов

AutoThrottleBatchSize() публичный Метод

public AutoThrottleBatchSize ( int amountOfItemsToIndex, long size, System.TimeSpan indexingDuration ) : void
amountOfItemsToIndex int
size long
indexingDuration System.TimeSpan
Результат void

BaseBatchSizeAutoTuner() защищенный Метод

protected BaseBatchSizeAutoTuner ( WorkContext context ) : System
context WorkContext
Результат System

GetLastAmountOfItems() защищенный абстрактный Метод

protected abstract GetLastAmountOfItems ( ) : IEnumerable
Результат IEnumerable

OutOfMemoryExceptionHappened() публичный Метод

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
Результат void

RecordAmountOfItems() защищенный абстрактный Метод

protected abstract RecordAmountOfItems ( int numberOfItems ) : void
numberOfItems int
Результат void

Описание свойств

context защищенное свойство

protected WorkContext,Raven.Database.Indexing context
Результат WorkContext