RangeMapping Class

Definition

Represents a mapping between a range of key values and a Shard.

public class RangeMapping implements IShardProvider<Range>,IMappingInfoProvider
Inheritance
java.lang.Object
RangeMapping

Constructors

RangeMapping(ShardMapManager shardMapManager, RangeMappingCreationInfo creationInfo)

Constructs a range mapping given mapping creation arguments.

RangeMapping(ShardMapManager shardMapManager, ShardMap shardMap, StoreMapping mapping)

Internal constructor used for deserialization from store representation of the mapping object.

Methods

clone()

Clones the instance which implements the interface.

equals(Object obj)

Determines whether the specified object is equal to the current object.

getId()

Identity of the mapping.

getKind()

Type of the mapping.

getRange()
getShard()

Gets Shard that contains the range of values.

getShardInfo()

Shard that contains the range of values.

getShardMapId()

Identify of the ShardMap this shard belongs to.

getShardMapManager()

ShardMapManager for the object.

getStatus()

Gets the MappingStatus of the mapping.

getStoreMapping()

Storage representation of the mapping.

getTypeName()

Mapping type, useful for diagnostics.

getValue()
hashCode()

Calculates the hash code for this instance.

setRange(ShardRange value)
setShardMapManager(ShardMapManager value)
toString()

Converts the object to its string representation.

validate(StoreShardMap shardMap, Connection conn)

Performs validation that the local representation is as up-to-date as the representation on the backing data store.

validateAsync(StoreShardMap shardMap, Connection conn)

Asynchronously performs validation that the local representation is as up-to-date as the representation on the backing data store.

Applies to