Class PartitionGroupNode
- java.lang.Object
-
- org.apache.ignite.internal.sql.optimizer.affinity.PartitionGroupNode
-
- All Implemented Interfaces:
PartitionNode
public class PartitionGroupNode extends Object implements PartitionNode
Flat group of partitions.
-
-
Constructor Summary
Constructors Constructor Description PartitionGroupNode(Set<PartitionSingleNode> siblings)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Integer>apply(PartitionClientContext ctx, Object... args)Get partitions.StringcacheName()booleanconstantsOnly()booleancontains(PartitionSingleNode val)Check if value exists.booleancontainsExact(Collection<PartitionSingleNode> siblings)Check if current group node contains exactly the same set of siblings.intjoinGroup()Set<PartitionSingleNode>siblings()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.sql.optimizer.affinity.PartitionNode
optimize
-
-
-
-
Constructor Detail
-
PartitionGroupNode
public PartitionGroupNode(Set<PartitionSingleNode> siblings)
Constructor.- Parameters:
siblings- Partitions.
-
-
Method Detail
-
apply
public Collection<Integer> apply(PartitionClientContext ctx, Object... args) throws IgniteCheckedException
Get partitions.- Specified by:
applyin interfacePartitionNode- Parameters:
ctx- Thin client context (optional).args- Query arguments.- Returns:
- Partitions.
- Throws:
IgniteCheckedException- If failed.
-
joinGroup
public int joinGroup()
- Specified by:
joinGroupin interfacePartitionNode- Returns:
- Join group for the given node.
-
siblings
public Set<PartitionSingleNode> siblings()
- Returns:
- Siblings
-
contains
public boolean contains(PartitionSingleNode val)
Check if value exists. Should be called only on non-mixed node.- Parameters:
val- Value- Returns:
Trueif exists.
-
containsExact
public boolean containsExact(Collection<PartitionSingleNode> siblings)
Check if current group node contains exactly the same set of siblings.- Parameters:
siblings- Siblings to check.- Returns:
Trueif both sets of siblings contain the same elements.
-
constantsOnly
public boolean constantsOnly()
- Returns:
Trueif the group contain only constants.
-
cacheName
public String cacheName()
- Specified by:
cacheNamein interfacePartitionNode- Returns:
- First met cache name of an any
PartitionSingleNodeduringPartitionNodetree traversal. This method is intended to be used within the Jdbc thin client.
-
-