Class PartitionSingleNode
- java.lang.Object
-
- org.apache.ignite.internal.sql.optimizer.affinity.PartitionSingleNode
-
- All Implemented Interfaces:
PartitionNode
- Direct Known Subclasses:
PartitionConstantNode,PartitionParameterNode
public abstract class PartitionSingleNode extends Object implements PartitionNode
Node with a single partition.
-
-
Field Summary
Fields Modifier and Type Field Description protected PartitionTabletblTable descriptor.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPartitionSingleNode(PartitionTable tbl)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<Integer>apply(PartitionClientContext cliCtx, Object... args)Get partitions.abstract IntegerapplySingle(@Nullable PartitionClientContext cliCtx, Object... args)Apply arguments and get single partition.StringcacheName()abstract booleanconstant()booleanequals(Object obj)inthashCode()intjoinGroup()PartitionTabletable()abstract intvalue()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.sql.optimizer.affinity.PartitionNode
optimize
-
-
-
-
Field Detail
-
tbl
@GridToStringExclude protected final PartitionTable tbl
Table descriptor.
-
-
Constructor Detail
-
PartitionSingleNode
protected PartitionSingleNode(PartitionTable tbl)
Constructor.- Parameters:
tbl- Table descriptor.
-
-
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.
-
applySingle
public abstract Integer applySingle(@Nullable @Nullable PartitionClientContext cliCtx, Object... args) throws IgniteCheckedException
Apply arguments and get single partition.- Parameters:
cliCtx- Client context.args- Arguments.- Returns:
- Partition or
nullif failed. - Throws:
IgniteCheckedException
-
constant
public abstract boolean constant()
- Returns:
Trueif constant,falseif argument.
-
joinGroup
public int joinGroup()
- Specified by:
joinGroupin interfacePartitionNode- Returns:
- Join group for the given node.
-
cacheName
public String cacheName()
- Specified by:
cacheNamein interfacePartitionNode- Returns:
- Cache name. Should be used only on server side.
-
value
public abstract int value()
- Returns:
- Partition for constant node, index for argument node.
-
table
public PartitionTable table()
- Returns:
- Underlying table.
-
-