Condividi tramite


RecoveryManager.GetMappingDifferences Method

Returns a dictionary of range-to-location key-value pairs. The location returned is an enumerator stating whether a given range (or point) is present only in the local shard map, only in the global shard map, or both. Ranges not contained in either shard map cannot contain differences so those ranges are not shown.

Namespace: Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery
Assembly: Microsoft.Azure.SqlDatabase.ElasticScale.Client (in Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll)

Usage

'Usage
Dim instance As RecoveryManager
Dim token As RecoveryToken
Dim returnValue As IDictionary(Of ShardRange, MappingLocation)

returnValue = instance.GetMappingDifferences(token)

Syntax

'Declaration
Public Function GetMappingDifferences ( _
    token As RecoveryToken _
) As IDictionary(Of ShardRange, MappingLocation)
public IDictionary<ShardRange,MappingLocation> GetMappingDifferences (
    RecoveryToken token
)
public:
IDictionary<ShardRange^, MappingLocation>^ GetMappingDifferences (
    RecoveryToken^ token
)
public IDictionary<ShardRange,MappingLocation> GetMappingDifferences (
    RecoveryToken token
)
public function GetMappingDifferences (
    token : RecoveryToken
) : IDictionary<ShardRange,MappingLocation>

Parameters

Return Value

The set of ranges and their corresponding MappingLocation.

Remarks

This method assumes a previous call to DetectMappingDifferences(ShardLocation,String) that provides the recovery token parameter. The result of this method is typically used in subsequent calls to resolve inconsistencies such as ResolveMappingDifferences or RebuildMappingsOnShard.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

RecoveryManager Class
RecoveryManager Members
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery Namespace