C# Класс Lucene.Net.Store.Azure.AzureDirectory

Наследование: System.IO.Directory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AzureDirectory ( Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount, string containerName = null, Directory cacheDirectory = null, bool compressBlobs = false, string rootFolder = null ) : System

Create an AzureDirectory

ClearCache ( ) : void
ClearLock ( string name ) : void
CreateCachedOutputAsStream ( string name ) : StreamOutput
CreateContainer ( ) : void
CreateOutput ( System name ) : IndexOutput

Creates a new, empty file in the directory with the given name. Returns a stream writing this file.

DeleteFile ( System name ) : void

Removes an existing file in the directory.

FileExists ( String name ) : bool

Returns true if a file with the given name exists.

FileLength ( String name ) : long

Returns the length of a file in the directory.

FileModified ( String name ) : long

Returns the time the named file was last modified.

ListAll ( ) : String[]

Returns an array of strings, one for each file in the directory.

MakeLock ( System name ) : Lock

Construct a {@link Lock}.

OpenCachedInputAsStream ( string name ) : StreamInput
OpenInput ( System name ) : IndexInput

Returns a stream reading an existing file.

ShouldCompressFile ( string path ) : bool
TouchFile ( System name ) : void

Set the modified time of an existing file to now.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Closes the store.

Приватные методы

Метод Описание
_initCacheDirectory ( Directory cacheDirectory ) : void

Описание методов

AzureDirectory() публичный Метод

Create an AzureDirectory
public AzureDirectory ( Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount, string containerName = null, Directory cacheDirectory = null, bool compressBlobs = false, string rootFolder = null ) : System
storageAccount Microsoft.WindowsAzure.Storage.CloudStorageAccount storage account to use
containerName string name of container (folder in blob storage)
cacheDirectory System.IO.Directory local Directory object to use for local cache
compressBlobs bool
rootFolder string path of the root folder inside the container
Результат System

ClearCache() публичный Метод

public ClearCache ( ) : void
Результат void

ClearLock() публичный Метод

public ClearLock ( string name ) : void
name string
Результат void

CreateCachedOutputAsStream() публичный Метод

public CreateCachedOutputAsStream ( string name ) : StreamOutput
name string
Результат StreamOutput

CreateContainer() публичный Метод

public CreateContainer ( ) : void
Результат void

CreateOutput() публичный Метод

Creates a new, empty file in the directory with the given name. Returns a stream writing this file.
public CreateOutput ( System name ) : IndexOutput
name System
Результат IndexOutput

DeleteFile() публичный Метод

Removes an existing file in the directory.
public DeleteFile ( System name ) : void
name System
Результат void

Dispose() защищенный Метод

Closes the store.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FileExists() публичный Метод

Returns true if a file with the given name exists.
public FileExists ( String name ) : bool
name String
Результат bool

FileLength() публичный Метод

Returns the length of a file in the directory.
public FileLength ( String name ) : long
name String
Результат long

FileModified() публичный Метод

Returns the time the named file was last modified.
public FileModified ( String name ) : long
name String
Результат long

ListAll() публичный Метод

Returns an array of strings, one for each file in the directory.
public ListAll ( ) : String[]
Результат String[]

MakeLock() публичный Метод

Construct a {@link Lock}.
public MakeLock ( System name ) : Lock
name System the name of the lock file ///
Результат Lock

OpenCachedInputAsStream() публичный Метод

public OpenCachedInputAsStream ( string name ) : StreamInput
name string
Результат StreamInput

OpenInput() публичный Метод

Returns a stream reading an existing file.
public OpenInput ( System name ) : IndexInput
name System
Результат IndexInput

ShouldCompressFile() публичный Метод

public ShouldCompressFile ( string path ) : bool
path string
Результат bool

TouchFile() публичный Метод

Set the modified time of an existing file to now.
public TouchFile ( System name ) : void
name System
Результат void