public interface TopicDescriptor
extends java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
int |
getPartitions() |
TimestampType |
getTimestampType() |
void |
setPartitions(int numPartitions)
Sets the number of partitions for the topic.
|
void |
setTimestampType(TimestampType timestampType)
Sets timestamp type
|
int getPartitions()
void setPartitions(int numPartitions)
numPartitions - the number of partitionsvoid setTimestampType(TimestampType timestampType)
timestampType - can be createtime or logappendtimeTimestampType getTimestampType()