C# Class Raven.Client.Shard.ShardedDocumentStore

Inheritance: IDocumentStore
Afficher le fichier Open project: robashton/ravendb Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
OpenAsyncSessionInternal ( string dbName, IAsyncDatabaseCommands>.Dictionary shardDbCommands ) : IAsyncDocumentSession
OpenSessionInternal ( string database, IDatabaseCommands>.Dictionary shardDbCommands ) : IDocumentSession

Method Details

AggressivelyCacheFor() public méthode

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

AsyncDatabaseCommandsFor() public méthode

public AsyncDatabaseCommandsFor ( string shardId ) : IAsyncDatabaseCommands
shardId string
Résultat IAsyncDatabaseCommands

BulkInsert() public méthode

public BulkInsert ( string database = null, BulkInsertOptions options = null ) : Raven.Client.Document.BulkInsertOperation
database string
options BulkInsertOptions
Résultat Raven.Client.Document.BulkInsertOperation

Changes() public méthode

public Changes ( string database = null ) : IDatabaseChanges
database string
Résultat IDatabaseChanges

DatabaseCommandsFor() public méthode

public DatabaseCommandsFor ( string shardId ) : IDatabaseCommands
shardId string
Résultat IDatabaseCommands

DisableAggressiveCaching() public méthode

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

Dispose() public méthode

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

ExecuteIndex() public méthode

Executes the index creation against each of the shards.
public ExecuteIndex ( AbstractIndexCreationTask indexCreationTask ) : void
indexCreationTask AbstractIndexCreationTask
Résultat void

ExecuteTransformer() public méthode

Executes the transformer creation
public ExecuteTransformer ( AbstractTransformerCreationTask transformerCreationTask ) : void
transformerCreationTask AbstractTransformerCreationTask
Résultat void

GetLastWrittenEtag() public méthode

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

Initialize() public méthode

Initializes this instance.
public Initialize ( ) : IDocumentStore
Résultat IDocumentStore

OpenAsyncSession() public méthode

Opens the async session.
public OpenAsyncSession ( ) : IAsyncDocumentSession
Résultat IAsyncDocumentSession

OpenAsyncSession() public méthode

Opens the async session.
public OpenAsyncSession ( string databaseName ) : IAsyncDocumentSession
databaseName string
Résultat IAsyncDocumentSession

OpenSession() public méthode

Opens the session.
public OpenSession ( ) : IDocumentSession
Résultat IDocumentSession

OpenSession() public méthode

Opens the session with the specified options.
public OpenSession ( Raven.Client.Document.OpenSessionOptions sessionOptions ) : IDocumentSession
sessionOptions Raven.Client.Document.OpenSessionOptions
Résultat IDocumentSession

OpenSession() public méthode

Opens the session for a particular database
public OpenSession ( string database ) : IDocumentSession
database string
Résultat IDocumentSession

ShardedDocumentStore() public méthode

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