Class PartitionCompositeNode
- java.lang.Object
-
- org.apache.ignite.internal.sql.optimizer.affinity.PartitionCompositeNode
-
- All Implemented Interfaces:
PartitionNode
public class PartitionCompositeNode extends Object implements PartitionNode
Composite node which consists of two child nodes and a relation between them.
-
-
Constructor Summary
Constructors Constructor Description PartitionCompositeNode(PartitionNode left, PartitionNode right, PartitionCompositeNodeOperator op)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Integer>apply(PartitionClientContext cliCtx, Object... args)Get partitions.StringcacheName()intjoinGroup()PartitionNodeleft()PartitionCompositeNodeOperatoroperator()PartitionNodeoptimize()Try optimizing partition nodes into a simpler form.PartitionNoderight()StringtoString()
-
-
-
Constructor Detail
-
PartitionCompositeNode
public PartitionCompositeNode(PartitionNode left, PartitionNode right, PartitionCompositeNodeOperator op)
Constructor.- Parameters:
left- Left node.right- Right node.op- Operator.
-
-
Method Detail
-
apply
public Collection<Integer> apply(PartitionClientContext cliCtx, Object... args) throws IgniteCheckedException
Get partitions.- Specified by:
applyin interfacePartitionNode- Parameters:
cliCtx- 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.
-
optimize
public PartitionNode optimize()
Try optimizing partition nodes into a simpler form.- Specified by:
optimizein interfacePartitionNode- Returns:
- Optimized node or
thisif optimization failed.
-
left
public PartitionNode left()
- Returns:
- Left node.
-
right
public PartitionNode right()
- Returns:
- Right node.
-
operator
public PartitionCompositeNodeOperator operator()
- Returns:
- Operator.
-
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.
-
-