RangeShardMap<KeyT>.splitMapping Method

Definition

Overloads

splitMapping(RangeMapping existingMapping, KeyT splitAt)

Splits the specified mapping into two new mappings using the specified key as boundary. The new mappings point to the same shard as the existing mapping.

splitMapping(RangeMapping existingMapping, KeyT splitAt, MappingLockToken mappingLockToken)

Splits the specified mapping into two new mappings using the specified key as boundary. The new mappings point to the same shard as the existing mapping.

splitMapping(RangeMapping existingMapping, KeyT splitAt)

Splits the specified mapping into two new mappings using the specified key as boundary. The new mappings point to the same shard as the existing mapping.

public List<RangeMapping> splitMapping(RangeMapping existingMapping, KeyT splitAt)

Parameters

existingMapping
RangeMapping

Existing mapping.

splitAt
KeyT

Split point.

Returns

List<RangeMapping>

Read-only collection of two new mappings that were created.

splitMapping(RangeMapping existingMapping, KeyT splitAt, MappingLockToken mappingLockToken)

Splits the specified mapping into two new mappings using the specified key as boundary. The new mappings point to the same shard as the existing mapping.

public List<RangeMapping> splitMapping(RangeMapping existingMapping, KeyT splitAt, MappingLockToken mappingLockToken)

Parameters

existingMapping
RangeMapping

Existing mapping.

splitAt
KeyT

Split point.

mappingLockToken
MappingLockToken

An instance of MappingLockToken

Returns

List<RangeMapping>

Read-only collection of two new mappings that were created.

Applies to