ShardMap Class

Definition

Represents a collection of shards and mappings between keys and shards in the collection.

public abstract class ShardMap
type ShardMap = class
    interface ICloneable<ShardMap>
Public MustInherit Class ShardMap
Inheritance
System.Object
ShardMap
Derived

Properties

KeyType

Shard map key type.

MapType

Shard map type.

Name

Shard map name.

Methods

CloneCore()

Clones the current shard map instance.

CreateShard(ShardCreationInfo)

Creates a new shard and registers it with the shard map.

CreateShard(ShardLocation)

Atomically adds a shard to ShardMap using the specified location.

DeleteShard(Shard)

Removes a shard from ShardMap.

GetShard(ShardLocation)

Obtains the shard for the specified location.

GetShards()

Gets all shards from the shard map.

OpenConnectionForKey<TKey>(TKey, String)

Opens a regular System.Data.SqlClient.SqlConnection to the shard to which the specified key value is mapped, with Validate.

OpenConnectionForKey<TKey>(TKey, String, ConnectionOptions)

Opens a regular System.Data.SqlClient.SqlConnection to the shard to which the specified key value is mapped.

OpenConnectionForKeyAsync<TKey>(TKey, String)

Asynchronously opens a regular System.Data.SqlClient.SqlConnection to the shard to which the specified key value is mapped, with Validate.

OpenConnectionForKeyAsync<TKey>(TKey, String, ConnectionOptions)

Asynchronously opens a regular System.Data.SqlClient.SqlConnection to the shard to which the specified key value is mapped.

ToString()

Converts the object to its string representation.

TryGetShard(ShardLocation, Shard)

Tries to obtains the shard for the specified location.

Extension Methods

AsListShardMap<TKey>(ShardMap)

Downcasts to ListShardMap of TKey.

AsRangeShardMap<TKey>(ShardMap)

Downcasts to RangeShardMap of TKey.

Applies to