Class PartitionsCalculator

java.lang.Object
org.gridgain.internal.recovery.PartitionsCalculator

public class PartitionsCalculator extends Object
Class for computing an expected partition set hosted by this node for a given Distribution Zone.
  • Constructor Details

    • PartitionsCalculator

      public PartitionsCalculator(String nodeName, org.apache.ignite.internal.metastorage.MetaStorageManager metaStorageManager)
      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:
      A map from zone IDs, that these tables belong to, to the partition sets hosted by this node.