C# Class Lucene.Net.Store.Azure.AzureDirectory

Inheritance: System.IO.Directory
Afficher le fichier Open project: azure-contrib/AzureDirectory Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Closes the store.

Private Methods

Méthode Description
_initCacheDirectory ( Directory cacheDirectory ) : void

Method Details

AzureDirectory() public méthode

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
Résultat System

ClearCache() public méthode

public ClearCache ( ) : void
Résultat void

ClearLock() public méthode

public ClearLock ( string name ) : void
name string
Résultat void

CreateCachedOutputAsStream() public méthode

public CreateCachedOutputAsStream ( string name ) : StreamOutput
name string
Résultat StreamOutput

CreateContainer() public méthode

public CreateContainer ( ) : void
Résultat void

CreateOutput() public méthode

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
Résultat IndexOutput

DeleteFile() public méthode

Removes an existing file in the directory.
public DeleteFile ( System name ) : void
name System
Résultat void

Dispose() protected méthode

Closes the store.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FileExists() public méthode

Returns true if a file with the given name exists.
public FileExists ( String name ) : bool
name String
Résultat bool

FileLength() public méthode

Returns the length of a file in the directory.
public FileLength ( String name ) : long
name String
Résultat long

FileModified() public méthode

Returns the time the named file was last modified.
public FileModified ( String name ) : long
name String
Résultat long

ListAll() public méthode

Returns an array of strings, one for each file in the directory.
public ListAll ( ) : String[]
Résultat String[]

MakeLock() public méthode

Construct a {@link Lock}.
public MakeLock ( System name ) : Lock
name System the name of the lock file ///
Résultat Lock

OpenCachedInputAsStream() public méthode

public OpenCachedInputAsStream ( string name ) : StreamInput
name string
Résultat StreamInput

OpenInput() public méthode

Returns a stream reading an existing file.
public OpenInput ( System name ) : IndexInput
name System
Résultat IndexInput

ShouldCompressFile() public méthode

public ShouldCompressFile ( string path ) : bool
path string
Résultat bool

TouchFile() public méthode

Set the modified time of an existing file to now.
public TouchFile ( System name ) : void
name System
Résultat void