public final class PartitionInstanceInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static PartitionInstanceInfo |
MASTER
Partition info for a master node.
|
Constructor and Description |
---|
PartitionInstanceInfo(NodeAllocationState.AssignmentState assignment,
int partitionCount)
Construct with given count and ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
NodeAllocationState.AssignmentState |
getAssignment()
Returns the assignment
|
int |
getPartitionCount()
Get the partition count.
|
int |
getPartitionID()
Get the partition ID.
|
int |
hashCode() |
String |
toString() |
public static final PartitionInstanceInfo MASTER
public PartitionInstanceInfo(NodeAllocationState.AssignmentState assignment, int partitionCount)
partitionCount
- total partition countpartitionID
- current partition IDpublic int getPartitionCount()
public NodeAllocationState.AssignmentState getAssignment()
public int getPartitionID()
Copyright © 2021 Actian Corporation. All rights reserved.