Package org.apache.pinot.spi.stream
Class ConsumerPartitionState
- java.lang.Object
-
- org.apache.pinot.spi.stream.ConsumerPartitionState
-
public class ConsumerPartitionState extends Object
Container for holding the current consumption state at a per-partition level
-
-
Constructor Summary
Constructors Constructor Description ConsumerPartitionState(String partitionId, StreamPartitionMsgOffset currentOffset, long lastProcessedTimeMs, StreamPartitionMsgOffset upstreamLatestOffset, RowMetadata lastProcessedRowMetadata)
-
Method Summary
Modifier and Type Method Description StreamPartitionMsgOffsetgetCurrentOffset()RowMetadatagetLastProcessedRowMetadata()longgetLastProcessedTimeMs()StringgetPartitionId()StreamPartitionMsgOffsetgetUpstreamLatestOffset()
-
-
-
Constructor Detail
-
ConsumerPartitionState
public ConsumerPartitionState(String partitionId, StreamPartitionMsgOffset currentOffset, long lastProcessedTimeMs, @Nullable StreamPartitionMsgOffset upstreamLatestOffset, @Nullable RowMetadata lastProcessedRowMetadata)
-
-
Method Detail
-
getCurrentOffset
public StreamPartitionMsgOffset getCurrentOffset()
-
getLastProcessedTimeMs
public long getLastProcessedTimeMs()
-
getPartitionId
public String getPartitionId()
-
getUpstreamLatestOffset
public StreamPartitionMsgOffset getUpstreamLatestOffset()
-
getLastProcessedRowMetadata
public RowMetadata getLastProcessedRowMetadata()
-
-