C# 클래스 Raven.Client.Shard.ShardedDocumentStore

상속: IDocumentStore
파일 보기 프로젝트 열기: robashton/ravendb 1 사용 예제들

공개 메소드들

메소드 설명
AggressivelyCacheFor ( System.TimeSpan cacheDuration ) : IDisposable

Setup the context for aggressive caching.

aggressive caching means that we will not check the server to see whatever the response we provide is current or not, but will serve the information directly from the local cache without touching the server.

AsyncDatabaseCommandsFor ( string shardId ) : IAsyncDatabaseCommands
BulkInsert ( string database = null, BulkInsertOptions options = null ) : Raven.Client.Document.BulkInsertOperation
Changes ( string database = null ) : IDatabaseChanges
DatabaseCommandsFor ( string shardId ) : IDatabaseCommands
DisableAggressiveCaching ( ) : IDisposable

Setup the context for no aggressive caching

This is mainly useful for internal use inside RavenDB, when we are executing queries that has been marked with WaitForNonStaleResults, we temporarily disable aggressive caching.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ExecuteIndex ( AbstractIndexCreationTask indexCreationTask ) : void

Executes the index creation against each of the shards.

ExecuteTransformer ( AbstractTransformerCreationTask transformerCreationTask ) : void

Executes the transformer creation

GetLastWrittenEtag ( ) : Etag

Gets the etag of the last document written by any session belonging to this document store

Initialize ( ) : IDocumentStore

Initializes this instance.

OpenAsyncSession ( ) : IAsyncDocumentSession

Opens the async session.

OpenAsyncSession ( string databaseName ) : IAsyncDocumentSession

Opens the async session.

OpenSession ( ) : IDocumentSession

Opens the session.

OpenSession ( Raven.Client.Document.OpenSessionOptions sessionOptions ) : IDocumentSession

Opens the session with the specified options.

OpenSession ( string database ) : IDocumentSession

Opens the session for a particular database

ShardedDocumentStore ( Raven.Client.Shard.ShardStrategy.ShardStrategy shardStrategy ) : System

Initializes a new instance of the ShardedDocumentStore class.

비공개 메소드들

메소드 설명
OpenAsyncSessionInternal ( string dbName, IAsyncDatabaseCommands>.Dictionary shardDbCommands ) : IAsyncDocumentSession
OpenSessionInternal ( string database, IDatabaseCommands>.Dictionary shardDbCommands ) : IDocumentSession

메소드 상세

AggressivelyCacheFor() 공개 메소드

Setup the context for aggressive caching.
aggressive caching means that we will not check the server to see whatever the response we provide is current or not, but will serve the information directly from the local cache without touching the server.
public AggressivelyCacheFor ( System.TimeSpan cacheDuration ) : IDisposable
cacheDuration System.TimeSpan Specify the aggressive cache duration
리턴 IDisposable

AsyncDatabaseCommandsFor() 공개 메소드

public AsyncDatabaseCommandsFor ( string shardId ) : IAsyncDatabaseCommands
shardId string
리턴 IAsyncDatabaseCommands

BulkInsert() 공개 메소드

public BulkInsert ( string database = null, BulkInsertOptions options = null ) : Raven.Client.Document.BulkInsertOperation
database string
options BulkInsertOptions
리턴 Raven.Client.Document.BulkInsertOperation

Changes() 공개 메소드

public Changes ( string database = null ) : IDatabaseChanges
database string
리턴 IDatabaseChanges

DatabaseCommandsFor() 공개 메소드

public DatabaseCommandsFor ( string shardId ) : IDatabaseCommands
shardId string
리턴 IDatabaseCommands

DisableAggressiveCaching() 공개 메소드

Setup the context for no aggressive caching
This is mainly useful for internal use inside RavenDB, when we are executing queries that has been marked with WaitForNonStaleResults, we temporarily disable aggressive caching.
public DisableAggressiveCaching ( ) : IDisposable
리턴 IDisposable

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

ExecuteIndex() 공개 메소드

Executes the index creation against each of the shards.
public ExecuteIndex ( AbstractIndexCreationTask indexCreationTask ) : void
indexCreationTask AbstractIndexCreationTask
리턴 void

ExecuteTransformer() 공개 메소드

Executes the transformer creation
public ExecuteTransformer ( AbstractTransformerCreationTask transformerCreationTask ) : void
transformerCreationTask AbstractTransformerCreationTask
리턴 void

GetLastWrittenEtag() 공개 메소드

Gets the etag of the last document written by any session belonging to this document store
public GetLastWrittenEtag ( ) : Etag
리턴 Etag

Initialize() 공개 메소드

Initializes this instance.
public Initialize ( ) : IDocumentStore
리턴 IDocumentStore

OpenAsyncSession() 공개 메소드

Opens the async session.
public OpenAsyncSession ( ) : IAsyncDocumentSession
리턴 IAsyncDocumentSession

OpenAsyncSession() 공개 메소드

Opens the async session.
public OpenAsyncSession ( string databaseName ) : IAsyncDocumentSession
databaseName string
리턴 IAsyncDocumentSession

OpenSession() 공개 메소드

Opens the session.
public OpenSession ( ) : IDocumentSession
리턴 IDocumentSession

OpenSession() 공개 메소드

Opens the session with the specified options.
public OpenSession ( Raven.Client.Document.OpenSessionOptions sessionOptions ) : IDocumentSession
sessionOptions Raven.Client.Document.OpenSessionOptions
리턴 IDocumentSession

OpenSession() 공개 메소드

Opens the session for a particular database
public OpenSession ( string database ) : IDocumentSession
database string
리턴 IDocumentSession

ShardedDocumentStore() 공개 메소드

Initializes a new instance of the ShardedDocumentStore class.
public ShardedDocumentStore ( Raven.Client.Shard.ShardStrategy.ShardStrategy shardStrategy ) : System
shardStrategy Raven.Client.Shard.ShardStrategy.ShardStrategy The shard strategy.
리턴 System