C# 클래스 Raven.Database.DocumentDatabase

상속: IUuidGenerator, IDisposable
파일 보기 프로젝트 열기: nhsevidence/ravendb 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddIndexingTask void
AssertAttachmentDeleteOperationNotVetoed void
AssertAttachmentPutOperationNotVetoed void
AssertDeleteOperationNotVetoed void
AssertPutOperationNotVetoed void
ExecuteAlterConfiguration void
ExecuteAttachmentReadTriggers void
ExecuteStartupTasks void
GetNextIdentityValueWithoutOverritingOnExistingDocuments long
InitializeTriggers void
ProcessAttachmentReadVetoes Attachment
RemoveReservedProperties void
TryCompletePromotedTransaction void
TryUndoPromotedTransaction void

공개 메소드들

메소드 설명
ApplyPatch ( string docId, System.Guid etag, PatchRequest patchDoc, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : PatchResult
Batch ( IEnumerable commands ) : BatchResult[]
Commit ( System.Guid txId ) : void
CreateSequentialUuid ( ) : System.Guid
Delete ( string key, System.Guid etag, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void
DeleteIndex ( string name ) : void
DeleteStatic ( string name, System.Guid etag ) : void
DisableAllTriggersForCurrentThread ( ) : IDisposable

This API is provided solely for the use of bundles that might need to run without any other bundle interfering. Specifically, the replication bundle need to be able to run without interference from any other bundle.

Dispose ( ) : void
DocumentDatabase ( InMemoryRavenConfiguration configuration ) : System
Get ( string key, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : JsonDocument
GetAttachments ( int start, int pageSize, System.Guid etag ) : Raven.Database.Data.AttachmentInformation[]
GetDocumentMetadata ( string key, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : JsonDocumentMetadata
GetDocuments ( int start, int pageSize, System.Guid etag ) : RavenJArray
GetDocumentsWithIdStartingWith ( string idPrefix, int start, int pageSize ) : RavenJArray
GetIndexDefinition ( string index ) : Raven.Database.Indexing.IndexDefinition
GetIndexEtag ( string indexName ) : System.Guid
GetIndexFields ( string index ) : string[]
GetIndexNames ( int start, int pageSize ) : RavenJArray
GetIndexes ( int start, int pageSize ) : RavenJArray
GetStatic ( string name ) : Attachment
GetTotalSizeOnDisk ( ) : long

Get the total size taken by the database on the disk. This explicitly does NOT include in memory indexes or in memory database. It does include any reserved space on the file system, which may significantly increase the database size.

This is a potentially a very expensive call, avoid making it if possible.

HasTransaction ( System.Guid txId ) : bool
PromoteTransaction ( System.Guid fromTxId ) : byte[]
Put ( string key, System.Guid etag, RavenJObject document, RavenJObject metadata, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : PutResult
PutIndex ( string name, Raven.Database.Indexing.IndexDefinition definition ) : string
PutStatic ( string name, System.Guid etag, byte data, RavenJObject metadata ) : void
Query ( string index, IndexQuery query ) : QueryResult
QueryDocumentIds ( string index, IndexQuery query, bool &stale ) : IEnumerable
ResetIndex ( string index ) : void
Restore ( RavenConfiguration configuration, string backupLocation, string databaseLocation ) : void
Rollback ( System.Guid txId ) : void
SpinBackgroundWorkers ( ) : void
StartBackup ( string backupDestinationDirectory ) : void
StopBackgroundWokers ( ) : void

비공개 메소드들

메소드 설명
AddIndexingTask ( IStorageActionsAccessor actions, RavenJToken metadata, Func taskGenerator ) : void
AssertAttachmentDeleteOperationNotVetoed ( string key ) : void
AssertAttachmentPutOperationNotVetoed ( string key, RavenJObject metadata, byte data ) : void
AssertDeleteOperationNotVetoed ( string key, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void
AssertPutOperationNotVetoed ( string key, RavenJObject metadata, RavenJObject document, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void
ExecuteAlterConfiguration ( ) : void
ExecuteAttachmentReadTriggers ( string name, Attachment attachment ) : void
ExecuteStartupTasks ( ) : void
GetNextIdentityValueWithoutOverritingOnExistingDocuments ( string key, IStorageActionsAccessor actions, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : long
InitializeTriggers ( ) : void
ProcessAttachmentReadVetoes ( string name, Attachment attachment ) : Attachment
RemoveReservedProperties ( RavenJObject document ) : void
TryCompletePromotedTransaction ( System.Guid txId ) : void
TryUndoPromotedTransaction ( System.Guid txId ) : void

메소드 상세

ApplyPatch() 공개 메소드

public ApplyPatch ( string docId, System.Guid etag, PatchRequest patchDoc, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : PatchResult
docId string
etag System.Guid
patchDoc PatchRequest
transactionInformation Raven.Abstractions.Data.TransactionInformation
리턴 PatchResult

Batch() 공개 메소드

public Batch ( IEnumerable commands ) : BatchResult[]
commands IEnumerable
리턴 BatchResult[]

Commit() 공개 메소드

public Commit ( System.Guid txId ) : void
txId System.Guid
리턴 void

CreateSequentialUuid() 공개 메소드

public CreateSequentialUuid ( ) : System.Guid
리턴 System.Guid

Delete() 공개 메소드

public Delete ( string key, System.Guid etag, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void
key string
etag System.Guid
transactionInformation Raven.Abstractions.Data.TransactionInformation
리턴 void

DeleteIndex() 공개 메소드

public DeleteIndex ( string name ) : void
name string
리턴 void

DeleteStatic() 공개 메소드

public DeleteStatic ( string name, System.Guid etag ) : void
name string
etag System.Guid
리턴 void

DisableAllTriggersForCurrentThread() 공개 메소드

This API is provided solely for the use of bundles that might need to run without any other bundle interfering. Specifically, the replication bundle need to be able to run without interference from any other bundle.
public DisableAllTriggersForCurrentThread ( ) : IDisposable
리턴 IDisposable

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DocumentDatabase() 공개 메소드

public DocumentDatabase ( InMemoryRavenConfiguration configuration ) : System
configuration InMemoryRavenConfiguration
리턴 System

Get() 공개 메소드

public Get ( string key, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : JsonDocument
key string
transactionInformation Raven.Abstractions.Data.TransactionInformation
리턴 JsonDocument

GetAttachments() 공개 메소드

public GetAttachments ( int start, int pageSize, System.Guid etag ) : Raven.Database.Data.AttachmentInformation[]
start int
pageSize int
etag System.Guid
리턴 Raven.Database.Data.AttachmentInformation[]

GetDocumentMetadata() 공개 메소드

public GetDocumentMetadata ( string key, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : JsonDocumentMetadata
key string
transactionInformation Raven.Abstractions.Data.TransactionInformation
리턴 JsonDocumentMetadata

GetDocuments() 공개 메소드

public GetDocuments ( int start, int pageSize, System.Guid etag ) : RavenJArray
start int
pageSize int
etag System.Guid
리턴 RavenJArray

GetDocumentsWithIdStartingWith() 공개 메소드

public GetDocumentsWithIdStartingWith ( string idPrefix, int start, int pageSize ) : RavenJArray
idPrefix string
start int
pageSize int
리턴 RavenJArray

GetIndexDefinition() 공개 메소드

public GetIndexDefinition ( string index ) : Raven.Database.Indexing.IndexDefinition
index string
리턴 Raven.Database.Indexing.IndexDefinition

GetIndexEtag() 공개 메소드

public GetIndexEtag ( string indexName ) : System.Guid
indexName string
리턴 System.Guid

GetIndexFields() 공개 메소드

public GetIndexFields ( string index ) : string[]
index string
리턴 string[]

GetIndexNames() 공개 메소드

public GetIndexNames ( int start, int pageSize ) : RavenJArray
start int
pageSize int
리턴 RavenJArray

GetIndexes() 공개 메소드

public GetIndexes ( int start, int pageSize ) : RavenJArray
start int
pageSize int
리턴 RavenJArray

GetStatic() 공개 메소드

public GetStatic ( string name ) : Attachment
name string
리턴 Attachment

GetTotalSizeOnDisk() 공개 메소드

Get the total size taken by the database on the disk. This explicitly does NOT include in memory indexes or in memory database. It does include any reserved space on the file system, which may significantly increase the database size.
This is a potentially a very expensive call, avoid making it if possible.
public GetTotalSizeOnDisk ( ) : long
리턴 long

HasTransaction() 공개 메소드

public HasTransaction ( System.Guid txId ) : bool
txId System.Guid
리턴 bool

PromoteTransaction() 공개 메소드

public PromoteTransaction ( System.Guid fromTxId ) : byte[]
fromTxId System.Guid
리턴 byte[]

Put() 공개 메소드

public Put ( string key, System.Guid etag, RavenJObject document, RavenJObject metadata, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : PutResult
key string
etag System.Guid
document RavenJObject
metadata RavenJObject
transactionInformation Raven.Abstractions.Data.TransactionInformation
리턴 PutResult

PutIndex() 공개 메소드

public PutIndex ( string name, Raven.Database.Indexing.IndexDefinition definition ) : string
name string
definition Raven.Database.Indexing.IndexDefinition
리턴 string

PutStatic() 공개 메소드

public PutStatic ( string name, System.Guid etag, byte data, RavenJObject metadata ) : void
name string
etag System.Guid
data byte
metadata RavenJObject
리턴 void

Query() 공개 메소드

public Query ( string index, IndexQuery query ) : QueryResult
index string
query IndexQuery
리턴 QueryResult

QueryDocumentIds() 공개 메소드

public QueryDocumentIds ( string index, IndexQuery query, bool &stale ) : IEnumerable
index string
query IndexQuery
stale bool
리턴 IEnumerable

ResetIndex() 공개 메소드

public ResetIndex ( string index ) : void
index string
리턴 void

Restore() 공개 정적인 메소드

public static Restore ( RavenConfiguration configuration, string backupLocation, string databaseLocation ) : void
configuration RavenConfiguration
backupLocation string
databaseLocation string
리턴 void

Rollback() 공개 메소드

public Rollback ( System.Guid txId ) : void
txId System.Guid
리턴 void

SpinBackgroundWorkers() 공개 메소드

public SpinBackgroundWorkers ( ) : void
리턴 void

StartBackup() 공개 메소드

public StartBackup ( string backupDestinationDirectory ) : void
backupDestinationDirectory string
리턴 void

StopBackgroundWokers() 공개 메소드

public StopBackgroundWokers ( ) : void
리턴 void