RangeShardMap<KeyT>.mergeMappings Method

Definition

Overloads

mergeMappings(RangeMapping left, RangeMapping right)

Merges 2 contiguous mappings into a single mapping. Both left and right mappings should point to the same location and must be contiguous.

mergeMappings(RangeMapping left, RangeMapping right, MappingLockToken leftMappingLockToken, MappingLockToken rightMappingLockToken)

Merges 2 contiguous mappings into a single mapping. Both left and right mappings should point to the same location and must be contiguous.

mergeMappings(RangeMapping left, RangeMapping right)

Merges 2 contiguous mappings into a single mapping. Both left and right mappings should point to the same location and must be contiguous.

public RangeMapping mergeMappings(RangeMapping left, RangeMapping right)

Parameters

left
RangeMapping

Left mapping.

right
RangeMapping

Right mapping.

Returns

Mapping that results from the merge operation.

mergeMappings(RangeMapping left, RangeMapping right, MappingLockToken leftMappingLockToken, MappingLockToken rightMappingLockToken)

Merges 2 contiguous mappings into a single mapping. Both left and right mappings should point to the same location and must be contiguous.

public RangeMapping mergeMappings(RangeMapping left, RangeMapping right, MappingLockToken leftMappingLockToken, MappingLockToken rightMappingLockToken)

Parameters

left
RangeMapping

Left mapping.

right
RangeMapping

Right mapping.

leftMappingLockToken
MappingLockToken

An instance of MappingLockToken for the left mapping

rightMappingLockToken
MappingLockToken

An instance of MappingLockToken for the right mapping

Returns

Mapping that results from the merge operation.

Applies to