C# Class NuGetGallery.LuceneIndexingService

Inheritance: IIndexingService
Afficher le fichier Open project: chocolatey/chocolatey.org Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
EnsureIndexWriter ( bool creatingIndex ) : void
IndexRequiresRefresh ( ) : bool
UpdateIndexRefreshTime ( ) : void
UpdateLastWriteTime ( ) : void

Private Methods

Méthode 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 méthode

public AddPackages ( IList packages, bool creatingIndex ) : void
packages IList
creatingIndex bool
Résultat void

EnsureIndexWriter() protected méthode

protected EnsureIndexWriter ( bool creatingIndex ) : void
creatingIndex bool
Résultat void

GetDocumentCount() public méthode

public GetDocumentCount ( ) : int
Résultat int

GetIndexSizeInBytes() public méthode

public GetIndexSizeInBytes ( ) : long
Résultat long

GetLastWriteTime() public méthode

public GetLastWriteTime ( ) : DateTime?
Résultat DateTime?

IndexRequiresRefresh() protected static méthode

protected static IndexRequiresRefresh ( ) : bool
Résultat bool

LuceneIndexingService() public méthode

public LuceneIndexingService ( IEntityRepository packageSource ) : System
packageSource IEntityRepository
Résultat System

RegisterBackgroundJobs() public méthode

public RegisterBackgroundJobs ( IList jobs ) : void
jobs IList
Résultat void

UpdateIndex() public méthode

public UpdateIndex ( ) : void
Résultat void

UpdateIndex() public méthode

public UpdateIndex ( bool forceRefresh ) : void
forceRefresh bool
Résultat void

UpdateIndexRefreshTime() protected static méthode

protected static UpdateIndexRefreshTime ( ) : void
Résultat void

UpdateLastWriteTime() protected méthode

protected UpdateLastWriteTime ( ) : void
Résultat void

UpdatePackage() public méthode

public UpdatePackage ( Package package ) : void
package Package
Résultat void