C# Class NuGet.Indexing.DownloadDocIdMappingHandler

Maps the download count from docId, assuming the downloads is already populated with downloads per package Id.
Inheritance: IIndexReaderProcessorHandler
Mostra file Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
Begin ( IndexReader indexReader ) : void
DownloadDocIdMappingHandler ( Downloads downloads ) : Lucene.Net.Documents
End ( IndexReader indexReader ) : void
Process ( IndexReader indexReader, string readerName, int perSegmentDocumentNumber, int perIndexDocumentNumber, Lucene.Net.Documents.Document document, string id, NuGet.Versioning.NuGetVersion version ) : void

Method Details

Begin() public method

public Begin ( IndexReader indexReader ) : void
indexReader Lucene.Net.Index.IndexReader
return void

DownloadDocIdMappingHandler() public method

public DownloadDocIdMappingHandler ( Downloads downloads ) : Lucene.Net.Documents
downloads Downloads
return Lucene.Net.Documents

End() public method

public End ( IndexReader indexReader ) : void
indexReader Lucene.Net.Index.IndexReader
return void

Process() public method

public Process ( IndexReader indexReader, string readerName, int perSegmentDocumentNumber, int perIndexDocumentNumber, Lucene.Net.Documents.Document document, string id, NuGet.Versioning.NuGetVersion version ) : void
indexReader Lucene.Net.Index.IndexReader
readerName string
perSegmentDocumentNumber int
perIndexDocumentNumber int
document Lucene.Net.Documents.Document
id string
version NuGet.Versioning.NuGetVersion
return void