C# Class Raven.Database.Indexing.MapReduceIndex

Inheritance: Index
Mostra file Open project: robashton/ravendb Class Usage Examples

Public Methods

Method Description
IndexDocuments ( AbstractViewGenerator viewGenerator, IndexingBatch batch, IStorageActionsAccessor actions, System.DateTime minimumTimestamp ) : void
MapReduceIndex ( Lucene.Net.Store.Directory directory, string name, Raven.Database.Indexing.IndexDefinition indexDefinition, AbstractViewGenerator viewGenerator, WorkContext context ) : System
Remove ( string keys, WorkContext context ) : void

Protected Methods

Method Description
HandleCommitPoints ( IndexedItemsInfo itemsInfo ) : void
IsUpToDateEnoughToWriteToDisk ( Etag highestETag ) : bool
RetrieveDocument ( Lucene.Net.Documents.Document document, FieldsToFetch fieldsToFetch, Lucene.Net.Search.ScoreDoc score ) : Raven.Database.Data.IndexQueryResult

Private Methods

Method Description
GetDocumentId ( object doc ) : string
GetMappedData ( object doc ) : RavenJObject
ProcessBatch ( AbstractViewGenerator viewGenerator, List currentDocumentResults, string currentKey, HashSet changes, IStorageActionsAccessor actions, int>.IDictionary statsPerKey ) : int
ReduceKeyToString ( object reduceValue ) : string

Method Details

HandleCommitPoints() protected method

protected HandleCommitPoints ( IndexedItemsInfo itemsInfo ) : void
itemsInfo IndexedItemsInfo
return void

IndexDocuments() public method

public IndexDocuments ( AbstractViewGenerator viewGenerator, IndexingBatch batch, IStorageActionsAccessor actions, System.DateTime minimumTimestamp ) : void
viewGenerator Raven.Database.Linq.AbstractViewGenerator
batch IndexingBatch
actions IStorageActionsAccessor
minimumTimestamp System.DateTime
return void

IsUpToDateEnoughToWriteToDisk() protected method

protected IsUpToDateEnoughToWriteToDisk ( Etag highestETag ) : bool
highestETag Etag
return bool

MapReduceIndex() public method

public MapReduceIndex ( Lucene.Net.Store.Directory directory, string name, Raven.Database.Indexing.IndexDefinition indexDefinition, AbstractViewGenerator viewGenerator, WorkContext context ) : System
directory Lucene.Net.Store.Directory
name string
indexDefinition Raven.Database.Indexing.IndexDefinition
viewGenerator Raven.Database.Linq.AbstractViewGenerator
context WorkContext
return System

Remove() public method

public Remove ( string keys, WorkContext context ) : void
keys string
context WorkContext
return void

RetrieveDocument() protected method

protected RetrieveDocument ( Lucene.Net.Documents.Document document, FieldsToFetch fieldsToFetch, Lucene.Net.Search.ScoreDoc score ) : Raven.Database.Data.IndexQueryResult
document Lucene.Net.Documents.Document
fieldsToFetch FieldsToFetch
score Lucene.Net.Search.ScoreDoc
return Raven.Database.Data.IndexQueryResult