Class MTopicDescriptor
- java.lang.Object
-
- com.mapr.kafka.eventstreams.impl.admin.MTopicDescriptor
-
- All Implemented Interfaces:
TopicDescriptor,java.lang.Cloneable
public class MTopicDescriptor extends java.lang.Object implements TopicDescriptor
-
-
Constructor Summary
Constructors Constructor Description MTopicDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPartitions()TimestampTypegetTimestampType()booleanhasPartitions()booleanhasTimestampType()voidsetPartitions(int numPartitions)Sets the number of partitions for the topic.voidsetTimestampType(TimestampType timestampType)Sets timestamp type
-
-
-
Method Detail
-
getPartitions
public int getPartitions()
- Specified by:
getPartitionsin interfaceTopicDescriptor- Returns:
- the number of partitions for the topic.
-
setPartitions
public void setPartitions(int numPartitions)
Description copied from interface:TopicDescriptorSets the number of partitions for the topic.- Specified by:
setPartitionsin interfaceTopicDescriptor- Parameters:
numPartitions- the number of partitions
-
hasPartitions
public boolean hasPartitions()
-
setTimestampType
public void setTimestampType(TimestampType timestampType)
Description copied from interface:TopicDescriptorSets timestamp type- Specified by:
setTimestampTypein interfaceTopicDescriptor- Parameters:
timestampType- can be createtime or logappendtime
-
getTimestampType
public TimestampType getTimestampType()
- Specified by:
getTimestampTypein interfaceTopicDescriptor- Returns:
- timestampType
-
hasTimestampType
public boolean hasTimestampType()
-
-