C# Class RavenFS.Storage.StorageActionsAccessor

Inheritance: IDisposable
显示文件 Open project: hibernating-rhinos/RavenFS Class Usage Examples

Private Properties

Property Type Description
Commit void
ConfigExists bool
Dispose void
GetTotalSize long?
RetrieveMetadata System.Collections.Specialized.NameValueCollection
ToQueryString string

Public Methods

Method Description
AddSignature ( string name, int level, Action action ) : void
AssociatePage ( string filename, int pageId, int pagePositionInFile, int pageSize ) : void
ClearSignatures ( string name ) : void
CompleteFileUpload ( string filename ) : void
DecrementFileCount ( ) : void
Delete ( string filename ) : void
DeleteConfig ( string name ) : void
GetConfig ( string name ) : NameValueCollection
GetConfigNames ( int start, int pageSize ) : IEnumerable
GetConfigNamesStartingWithPrefix ( string prefix, int start, int take, int &total ) : IList
GetConfigsStartWithPrefix ( string prefix, int start, int take ) : IList
GetFile ( string filename, int start, int pagesToLoad ) : FileAndPages
GetFileCount ( ) : int
GetFilesAfter ( System.Guid etag, int take ) : IEnumerable
GetSignatureSize ( int id, int level ) : long
GetSignatureStream ( int id, int level, Action action ) : void
GetSignatures ( string name ) : IEnumerable
InsertPage ( byte buffer, int size ) : int
PulseTransaction ( ) : void
PutFile ( string filename, long totalSize, NameValueCollection metadata, bool tombstone = false ) : void
ReadFile ( string filename ) : FileHeader
ReadFiles ( int start, int size ) : IEnumerable
ReadPage ( int pageId, byte buffer ) : int
RenameFile ( string filename, string rename, bool commitPeriodically = false ) : void
SetConfig ( string name, NameValueCollection metadata ) : void
StorageActionsAccessor ( TableColumnsCache tableColumnsCache, JET_INSTANCE instance, string databaseName ) : System
UpdateFileMetadata ( string filename, NameValueCollection metadata ) : void

Private Methods

Method Description
Commit ( ) : void
ConfigExists ( string name ) : bool
Dispose ( ) : void
GetTotalSize ( ) : long?
RetrieveMetadata ( ) : NameValueCollection
ToQueryString ( NameValueCollection metadata ) : string

Method Details

AddSignature() public method

public AddSignature ( string name, int level, Action action ) : void
name string
level int
action Action
return void

AssociatePage() public method

public AssociatePage ( string filename, int pageId, int pagePositionInFile, int pageSize ) : void
filename string
pageId int
pagePositionInFile int
pageSize int
return void

ClearSignatures() public method

public ClearSignatures ( string name ) : void
name string
return void

CompleteFileUpload() public method

public CompleteFileUpload ( string filename ) : void
filename string
return void

DecrementFileCount() public method

public DecrementFileCount ( ) : void
return void

Delete() public method

public Delete ( string filename ) : void
filename string
return void

DeleteConfig() public method

public DeleteConfig ( string name ) : void
name string
return void

GetConfig() public method

public GetConfig ( string name ) : NameValueCollection
name string
return System.Collections.Specialized.NameValueCollection

GetConfigNames() public method

public GetConfigNames ( int start, int pageSize ) : IEnumerable
start int
pageSize int
return IEnumerable

GetConfigNamesStartingWithPrefix() public method

public GetConfigNamesStartingWithPrefix ( string prefix, int start, int take, int &total ) : IList
prefix string
start int
take int
total int
return IList

GetConfigsStartWithPrefix() public method

public GetConfigsStartWithPrefix ( string prefix, int start, int take ) : IList
prefix string
start int
take int
return IList

GetFile() public method

public GetFile ( string filename, int start, int pagesToLoad ) : FileAndPages
filename string
start int
pagesToLoad int
return FileAndPages

GetFileCount() public method

public GetFileCount ( ) : int
return int

GetFilesAfter() public method

public GetFilesAfter ( System.Guid etag, int take ) : IEnumerable
etag System.Guid
take int
return IEnumerable

GetSignatureSize() public method

public GetSignatureSize ( int id, int level ) : long
id int
level int
return long

GetSignatureStream() public method

public GetSignatureStream ( int id, int level, Action action ) : void
id int
level int
action Action
return void

GetSignatures() public method

public GetSignatures ( string name ) : IEnumerable
name string
return IEnumerable

InsertPage() public method

public InsertPage ( byte buffer, int size ) : int
buffer byte
size int
return int

PulseTransaction() public method

public PulseTransaction ( ) : void
return void

PutFile() public method

public PutFile ( string filename, long totalSize, NameValueCollection metadata, bool tombstone = false ) : void
filename string
totalSize long
metadata System.Collections.Specialized.NameValueCollection
tombstone bool
return void

ReadFile() public method

public ReadFile ( string filename ) : FileHeader
filename string
return FileHeader

ReadFiles() public method

public ReadFiles ( int start, int size ) : IEnumerable
start int
size int
return IEnumerable

ReadPage() public method

public ReadPage ( int pageId, byte buffer ) : int
pageId int
buffer byte
return int

RenameFile() public method

public RenameFile ( string filename, string rename, bool commitPeriodically = false ) : void
filename string
rename string
commitPeriodically bool
return void

SetConfig() public method

public SetConfig ( string name, NameValueCollection metadata ) : void
name string
metadata System.Collections.Specialized.NameValueCollection
return void

StorageActionsAccessor() public method

public StorageActionsAccessor ( TableColumnsCache tableColumnsCache, JET_INSTANCE instance, string databaseName ) : System
tableColumnsCache TableColumnsCache
instance JET_INSTANCE
databaseName string
return System

UpdateFileMetadata() public method

public UpdateFileMetadata ( string filename, NameValueCollection metadata ) : void
filename string
metadata System.Collections.Specialized.NameValueCollection
return void