Class PartitionConstantNode
- java.lang.Object
-
- org.apache.ignite.internal.sql.optimizer.affinity.PartitionSingleNode
-
- org.apache.ignite.internal.sql.optimizer.affinity.PartitionConstantNode
-
- All Implemented Interfaces:
PartitionNode
public class PartitionConstantNode extends PartitionSingleNode
Node with constant partition.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.sql.optimizer.affinity.PartitionSingleNode
tbl
-
-
Constructor Summary
Constructors Constructor Description PartitionConstantNode(PartitionTable tbl, int part)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerapplySingle(PartitionClientContext cliCtx, Object... args)Apply arguments and get single partition.booleanconstant()StringtoString()intvalue()-
Methods inherited from class org.apache.ignite.internal.sql.optimizer.affinity.PartitionSingleNode
apply, cacheName, equals, hashCode, joinGroup, table
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.sql.optimizer.affinity.PartitionNode
optimize
-
-
-
-
Constructor Detail
-
PartitionConstantNode
public PartitionConstantNode(PartitionTable tbl, int part)
Constructor.- Parameters:
tbl- Table.part- Partition.
-
-
Method Detail
-
applySingle
public Integer applySingle(PartitionClientContext cliCtx, Object... args)
Apply arguments and get single partition.- Specified by:
applySinglein classPartitionSingleNode- Parameters:
cliCtx- Client context.args- Arguments.- Returns:
- Partition or
nullif failed.
-
constant
public boolean constant()
- Specified by:
constantin classPartitionSingleNode- Returns:
Trueif constant,falseif argument.
-
value
public int value()
- Specified by:
valuein classPartitionSingleNode- Returns:
- Partition for constant node, index for argument node.
-
-