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 Summary

    Constructors
    Constructor
    Description
    PartitionsCalculator(String nodeName, org.apache.ignite.internal.metastorage.MetaStorageManager metaStorageManager, org.apache.ignite.internal.components.NodeProperties nodeProperties)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.