C# 클래스 Lucene.Net.Store.Azure.AzureDirectory

상속: System.IO.Directory
파일 보기 프로젝트 열기: azure-contrib/AzureDirectory 1 사용 예제들

공개 메소드들

메소드 설명
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