Package org.gridgain.internal.recovery
Class PartitionsCalculator
java.lang.Object
org.gridgain.internal.recovery.PartitionsCalculator
Class for computing an expected partition set hosted by this node for a given Distribution Zone.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionsCalculator(String nodeName, org.apache.ignite.internal.metastorage.MetaStorageManager metaStorageManager, org.apache.ignite.internal.components.NodeProperties nodeProperties) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<Map<Integer,org.apache.ignite.internal.table.distributed.PartitionSet>> calculatePartitions(List<org.apache.ignite.internal.catalog.descriptors.CatalogTableDescriptor> tableDescriptors, long causalityToken) Calculates partition sets hosted by this node for the given tables.
-
Constructor Details
-
PartitionsCalculator
public PartitionsCalculator(String nodeName, org.apache.ignite.internal.metastorage.MetaStorageManager metaStorageManager, org.apache.ignite.internal.components.NodeProperties nodeProperties) Constructor.
-
-
Method Details
-
calculatePartitions
public CompletableFuture<Map<Integer,org.apache.ignite.internal.table.distributed.PartitionSet>> calculatePartitions(List<org.apache.ignite.internal.catalog.descriptors.CatalogTableDescriptor> tableDescriptors, long causalityToken) Calculates partition sets hosted by this node for the given tables.- Returns:
- If colocation is enabled: a map from zone IDs, that these tables belong to, to the partition sets hosted by this node. If colocation is not enabled: a map from table IDs to the partition sets hosted by this node.
-