ListShardMap<KeyT> Class

Definition

Represents a shard map of points where points are of the specified key.

public class ListShardMap<KeyT> extends ShardMap

Type Parameters

KeyT
Inheritance
java.lang.Object
Cloneable
ListShardMap<KeyT>

Inherited Members

Constructors

ListShardMap(ShardMapManager shardMapManager, StoreShardMap ssm)

Constructs a new instance.

Methods

clone()

Clones the specified shard map.

cloneCore()

Clones the current shard map instance.

createPointMapping(KeyT point, Shard shard)

Creates and adds a point mapping to ShardMap.

createPointMapping(PointMappingCreationInfo creationInfo)

Creates and adds a point mapping to ShardMap.

deleteMapping(PointMapping mapping)

Removes a point mapping.

getMapper()

Gets the mapper. This method is used by OpenConnection/Lookup of V.

getMappingForKey(KeyT key)

Looks up the key value and returns the corresponding mapping. Only the global shard map store is searched, not the local cache. This is equivalent to .

getMappingForKey(KeyT key, LookupOptions lookupOptions)

Looks up the key value and returns the corresponding mapping.

getMappingLockOwner(PointMapping mapping)

Gets the lock owner id of the specified mapping.

getMappings()

Gets all the point mappings for the shard map.

getMappings(LookupOptions lookupOptions)

Gets all the point mappings for the shard map.

getMappings(Range range)

Gets all the mappings that exist within given range.

getMappings(Range range, LookupOptions lookupOptions)

Gets all the mappings that exist within given range.

getMappings(Range range, Shard shard)

Gets all the mappings that exist within given range and given shard.

getMappings(Range range, Shard shard, LookupOptions lookupOptions)

Gets all the mappings that exist within given range and given shard.

getMappings(Shard shard)

Gets all the mappings that exist for the given shard.

getMappings(Shard shard, LookupOptions lookupOptions)

Gets all the mappings that exist for the given shard.

lockMapping(PointMapping mapping, MappingLockToken mappingLockToken)

Locks the mapping for the specified owner The state of a locked mapping can only be modified by the lock owner.

markMappingOffline(PointMapping mapping)

Marks the specified mapping offline.

markMappingOnline(PointMapping mapping)

Marks the specified mapping online.

tryGetMappingForKey(KeyT key, LookupOptions lookupOptions, ReferenceObjectHelper<PointMapping> pointMapping)

Tries to looks up the key value and place the corresponding mapping in pointMapping .

tryGetMappingForKey(KeyT key, ReferenceObjectHelper<PointMapping> pointMapping)

Tries to looks up the key value and place the corresponding mapping in pointMapping . Only the global shard map store is searched, not local cache. This is equivalent to .

unlockMapping(MappingLockToken mappingLockToken)

Unlocks all mappings in this map that belong to the given MappingLockToken.

unlockMapping(PointMapping mapping, MappingLockToken mappingLockToken)

Unlocks the specified mapping

updateMapping(PointMapping currentMapping, PointMappingUpdate update)

Updates a PointMapping<KeyT> with the updates provided in the update parameter.

updateMapping(PointMapping currentMapping, PointMappingUpdate update, MappingLockToken mappingLockToken)

Updates a point mapping with the changes provided in the update parameter.

Applies to