C# Class NuGet.Indexing.RAMDirectoryWrapper

This class wraps the RAMDirectory so we can correct the return of FileModified function
Inheritance: Lucene.Net.Store.RAMDirectory
Mostra file Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
FileModified ( string name ) : long

Returns the time (as a long) the named file was last modified in a Windows FileTime in UTC

The implementation here is to keep in line with the implementation in AzureDirectory for use in the AzureDirectorySynchronizer. See https://github.com/azure-contrib/AzureDirectory/blob/master/AzureDirectory/AzureDirectory.cs#L147 for AzureDirectory implementation

RAMDirectoryWrapper ( ) : Lucene.Net.Store
RAMDirectoryWrapper ( Lucene.Net.Store.Directory seedDirectory ) : Lucene.Net.Store

Method Details

FileModified() public method

Returns the time (as a long) the named file was last modified in a Windows FileTime in UTC
The implementation here is to keep in line with the implementation in AzureDirectory for use in the AzureDirectorySynchronizer. See https://github.com/azure-contrib/AzureDirectory/blob/master/AzureDirectory/AzureDirectory.cs#L147 for AzureDirectory implementation
public FileModified ( string name ) : long
name string File Name
return long

RAMDirectoryWrapper() public method

public RAMDirectoryWrapper ( ) : Lucene.Net.Store
return Lucene.Net.Store

RAMDirectoryWrapper() public method

public RAMDirectoryWrapper ( Lucene.Net.Store.Directory seedDirectory ) : Lucene.Net.Store
seedDirectory Lucene.Net.Store.Directory
return Lucene.Net.Store