Package org.apache.pinot.spi.stream
Class PartitionGroupMetadata
- java.lang.Object
-
- org.apache.pinot.spi.stream.PartitionGroupMetadata
-
public class PartitionGroupMetadata extends Object
A PartitionGroup is a group of partitions/shards that the same consumer should consume from. This class is a container for the metadata regarding a partition group, that is needed by a consumer to start consumption. It consists of 1. A unique partition group id for this partition group 2. The start offset to begin consumption for this partition group
-
-
Constructor Summary
Constructors Constructor Description PartitionGroupMetadata(int partitionGroupId, StreamPartitionMsgOffset startOffset)
-
Method Summary
Modifier and Type Method Description intgetPartitionGroupId()StreamPartitionMsgOffsetgetStartOffset()
-
-
-
Constructor Detail
-
PartitionGroupMetadata
public PartitionGroupMetadata(int partitionGroupId, StreamPartitionMsgOffset startOffset)
-
-
Method Detail
-
getPartitionGroupId
public int getPartitionGroupId()
-
getStartOffset
public StreamPartitionMsgOffset getStartOffset()
-
-