Package com.mapr.kafka.eventstreams
Interface TopicDescriptor
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
MTopicDescriptor
public interface TopicDescriptor extends java.lang.CloneableA TopicDescriptor contains the details about a topic such as the number of partitions, the timestamptype, log compaction settingetc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPartitions()TimestampTypegetTimestampType()voidsetPartitions(int numPartitions)Sets the number of partitions for the topic.voidsetTimestampType(TimestampType timestampType)Sets timestamp type
-
-
-
Method Detail
-
getPartitions
int getPartitions()
- Returns:
- the number of partitions for the topic.
-
setPartitions
void setPartitions(int numPartitions)
Sets the number of partitions for the topic.- Parameters:
numPartitions- the number of partitions
-
setTimestampType
void setTimestampType(TimestampType timestampType)
Sets timestamp type- Parameters:
timestampType- can be createtime or logappendtime
-
getTimestampType
TimestampType getTimestampType()
- Returns:
- timestampType
-
-