Class PartitionTableAffinityDescriptor
- java.lang.Object
-
- org.apache.ignite.internal.sql.optimizer.affinity.PartitionTableAffinityDescriptor
-
public class PartitionTableAffinityDescriptor extends Object
Affinity function descriptor. Used to compare affinity functions of two tables.
-
-
Constructor Summary
Constructors Constructor Description PartitionTableAffinityDescriptor(PartitionAffinityFunctionType affFunc, int parts, boolean hasNodeFilter, String dataRegion)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisClientPartitionAwarenessApplicable()booleanisCompatible(PartitionTableAffinityDescriptor other)Check is provided descriptor is compatible with this instance (i.e. can be used in the same co-location group).intparts()StringtoString()
-
-
-
Constructor Detail
-
PartitionTableAffinityDescriptor
public PartitionTableAffinityDescriptor(PartitionAffinityFunctionType affFunc, int parts, boolean hasNodeFilter, String dataRegion)
Constructor.- Parameters:
affFunc- Affinity function type.parts- Number of partitions.hasNodeFilter- Whether node filter is set.dataRegion- Data region.
-
-
Method Detail
-
isCompatible
public boolean isCompatible(PartitionTableAffinityDescriptor other)
Check is provided descriptor is compatible with this instance (i.e. can be used in the same co-location group).- Parameters:
other- Other descriptor.- Returns:
Trueif compatible.
-
isClientPartitionAwarenessApplicable
public boolean isClientPartitionAwarenessApplicable()
- Returns:
- True if applicable to jdbc thin client side partition awareness.
-
parts
public int parts()
- Returns:
- Number of partitions.
-
-