public static class TopicReplicaAssignor.NewPartitions extends Object
Constructor and Description |
---|
NewPartitions(String topic,
int totalPartitions,
int firstNewPartition,
short replicationFactor) |
Modifier and Type | Method and Description |
---|---|
int |
firstNewPartition()
The partition index from which each subsequent partition is newly-created.
|
boolean |
isNewTopic() |
short |
replicationFactor()
The replication factor of the topic.
|
String |
topic()
The name of the topic.
|
String |
toString() |
int |
totalPartitions()
The total number of partitions for this topic post-creation.
|
public NewPartitions(String topic, int totalPartitions, int firstNewPartition, short replicationFactor)
public String topic()
public int totalPartitions()
public int firstNewPartition()
public short replicationFactor()
public boolean isNewTopic()