Compartir a través de


StoreMapping Class

  • java.lang.Object
    • com.microsoft.azure.elasticdb.shard.store.StoreMapping

public class StoreMapping

Storage representation of a mapping b/w key ranges and shards.

Constructor Summary

Constructor Description
StoreMapping()
StoreMapping(UUID id, Shard s, byte[] minValue, byte[] maxValue, int status)

Constructs the storage representation from client side objects.

StoreMapping(UUID id, UUID shardMapId, byte[] minValue, byte[] maxValue, int status, UUID lockOwnerId, StoreShard storeShard)

Constructs the storage representation from client side objects.

Method Summary

Modifier and Type Method and Description
UUID getId()
UUID getLockOwnerId()
String getLockOwnerIdString()
byte [] getMaxValue()
byte [] getMinValue()
UUID getShardMapId()
int getStatus()
StoreShard getStoreShard()

Constructor Details

StoreMapping

public StoreMapping()

StoreMapping

public StoreMapping(UUID id, Shard s, byte[] minValue, byte[] maxValue, int status)

Constructs the storage representation from client side objects.

Parameters:

id - Identify of mapping.
s - Shard being converted.
minValue - min key value.
maxValue - max key value.
status - Mapping status.

StoreMapping

public StoreMapping(UUID id, UUID shardMapId, byte[] minValue, byte[] maxValue, int status, UUID lockOwnerId, StoreShard storeShard)

Constructs the storage representation from client side objects.

Parameters:

id - Identify of mapping.
shardMapId - Id of parent shardMap.
minValue - min key value.
maxValue - max key value.
status - Mapping status.
lockOwnerId - Lock owner id.
storeShard - StoreShard

Method Details

getId

public UUID getId()

getLockOwnerId

public UUID getLockOwnerId()

getLockOwnerIdString

public String getLockOwnerIdString()

getMaxValue

public byte [] getMaxValue()

getMinValue

public byte [] getMinValue()

getShardMapId

public UUID getShardMapId()

getStatus

public int getStatus()

getStoreShard

public StoreShard getStoreShard()

Applies to