C# Class NuGetGallery.LuceneIndexingService

Inheritance: IIndexingService
显示文件 Open project: chocolatey/chocolatey.org Class Usage Examples

Public Methods

Method Description
AddPackages ( IList packages, bool creatingIndex ) : void
GetDocumentCount ( ) : int
GetIndexSizeInBytes ( ) : long
GetLastWriteTime ( ) : DateTime?
LuceneIndexingService ( IEntityRepository packageSource ) : System
RegisterBackgroundJobs ( IList jobs ) : void
UpdateIndex ( ) : void
UpdateIndex ( bool forceRefresh ) : void
UpdatePackage ( Package package ) : void

Protected Methods

Method Description
EnsureIndexWriter ( bool creatingIndex ) : void
IndexRequiresRefresh ( ) : bool
UpdateIndexRefreshTime ( ) : void
UpdateLastWriteTime ( ) : void

Private Methods

Method Description
AddPackage ( PackageIndexEntity packageInfo ) : void
AddPackagesCore ( IList packages, bool creatingIndex ) : void
CalculateSize ( DirectoryInfo dir ) : long
EnsureIndexWriterCore ( bool creatingIndex ) : void
GetPackages ( System.DateTime lastIndexTime ) : List

Method Details

AddPackages() public method

public AddPackages ( IList packages, bool creatingIndex ) : void
packages IList
creatingIndex bool
return void

EnsureIndexWriter() protected method

protected EnsureIndexWriter ( bool creatingIndex ) : void
creatingIndex bool
return void

GetDocumentCount() public method

public GetDocumentCount ( ) : int
return int

GetIndexSizeInBytes() public method

public GetIndexSizeInBytes ( ) : long
return long

GetLastWriteTime() public method

public GetLastWriteTime ( ) : DateTime?
return DateTime?

IndexRequiresRefresh() protected static method

protected static IndexRequiresRefresh ( ) : bool
return bool

LuceneIndexingService() public method

public LuceneIndexingService ( IEntityRepository packageSource ) : System
packageSource IEntityRepository
return System

RegisterBackgroundJobs() public method

public RegisterBackgroundJobs ( IList jobs ) : void
jobs IList
return void

UpdateIndex() public method

public UpdateIndex ( ) : void
return void

UpdateIndex() public method

public UpdateIndex ( bool forceRefresh ) : void
forceRefresh bool
return void

UpdateIndexRefreshTime() protected static method

protected static UpdateIndexRefreshTime ( ) : void
return void

UpdateLastWriteTime() protected method

protected UpdateLastWriteTime ( ) : void
return void

UpdatePackage() public method

public UpdatePackage ( Package package ) : void
package Package
return void