ShardMap ShardMap 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
ShardMapShardMapShardMap
Derived

Properties

KeyType KeyType KeyType

Shard map key type.

MapType MapType MapType

Shard map type.

Name Name Name

Shard map name.

Methods

CloneCore() CloneCore() CloneCore()

Clones the current shard map instance.

CreateShard(ShardCreationInfo) CreateShard(ShardCreationInfo) CreateShard(ShardCreationInfo)

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

CreateShard(ShardLocation) CreateShard(ShardLocation) CreateShard(ShardLocation)

Atomically adds a shard to ShardMap using the specified location.

DeleteShard(Shard) DeleteShard(Shard) DeleteShard(Shard)

Removes a shard from ShardMap.

GetShard(ShardLocation) GetShard(ShardLocation) GetShard(ShardLocation)

Obtains the shard for the specified location.

GetShards() GetShards() GetShards()

Gets all shards from the shard map.

OpenConnectionForKey<TKey>(TKey, String) OpenConnectionForKey<TKey>(TKey, String) OpenConnectionForKey<TKey>(TKey, String)

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

OpenConnectionForKey<TKey>(TKey, String, ConnectionOptions) OpenConnectionForKey<TKey>(TKey, String, ConnectionOptions) OpenConnectionForKey<TKey>(TKey, String, ConnectionOptions)

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

OpenConnectionForKeyAsync<TKey>(TKey, String) OpenConnectionForKeyAsync<TKey>(TKey, String) OpenConnectionForKeyAsync<TKey>(TKey, String)

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

OpenConnectionForKeyAsync<TKey>(TKey, String, ConnectionOptions) OpenConnectionForKeyAsync<TKey>(TKey, String, ConnectionOptions) OpenConnectionForKeyAsync<TKey>(TKey, String, ConnectionOptions)

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

ToString() ToString() ToString()

Converts the object to its string representation.

TryGetShard(ShardLocation, Shard) TryGetShard(ShardLocation, Shard) TryGetShard(ShardLocation, Shard)

Tries to obtains the shard for the specified location.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

AsListShardMap<TKey>(ShardMap) AsListShardMap<TKey>(ShardMap) AsListShardMap<TKey>(ShardMap)

Downcasts to ListShardMap of TKey.

AsRangeShardMap<TKey>(ShardMap) AsRangeShardMap<TKey>(ShardMap) AsRangeShardMap<TKey>(ShardMap)

Downcasts to RangeShardMap of TKey.

Applies to