Class PartitionResult


  • public class PartitionResult
    extends Object
    Partition extraction result.
    • Method Detail

      • calculatePartitions

        public static int[] calculatePartitions​(int[] explicitParts,
                                                PartitionResult derivedParts,
                                                Object[] args)
        Calculate partitions for the query.
        Parameters:
        explicitParts - Explicit partitions provided in SqlFieldsQuery.partitions property.
        derivedParts - Derived partitions found during partition pruning.
        args - Arguments.
        Returns:
        Calculated partitions or null if failed to calculate and there should be a broadcast.
      • topologyVersion

        public AffinityTopologyVersion topologyVersion()
        Returns:
        Affinity topology version. This method is intended to be used within the Jdbc thin client.
      • cacheName

        public String cacheName()
        Returns:
        Cache name. This method is intended to be used within the Jdbc thin client.
      • partitionsCount

        public int partitionsCount()
        Returns:
        Partitions count. This method is intended to be used within the Jdbc thin client.
      • isClientPartitionAwarenessApplicable

        public boolean isClientPartitionAwarenessApplicable()
        Returns:
        True if applicable to jdbc thin client side partition awareness: 1. Rendezvous affinity function without map filters was used; 2. Partition result tree neither PartitoinAllNode nor PartitionNoneNode;