Package org.apache.pinot.spi.stream
Class PartitionLagState
- java.lang.Object
-
- org.apache.pinot.spi.stream.PartitionLagState
-
- Direct Known Subclasses:
StreamMetadataProvider.UnknownLagState
public class PartitionLagState extends Object
Container that can be used for holding per-partition consumer lag calculated along standard dimensions such as record offset, ingestion time etc.
-
-
Field Summary
Fields Modifier and Type Field Description static StringNOT_CALCULATED
-
Constructor Summary
Constructors Constructor Description PartitionLagState()
-
Method Summary
Modifier and Type Method Description StringgetAvailabilityLagMs()Defines how soon after record ingestion was the record consumed by Pinot.StringgetRecordsLag()Defines how far behind the current record's offset / pointer is from upstream latest record The distance is based on actual record count.
-
-
-
Field Detail
-
NOT_CALCULATED
public static final String NOT_CALCULATED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordsLag
public String getRecordsLag()
Defines how far behind the current record's offset / pointer is from upstream latest record The distance is based on actual record count.
-
getAvailabilityLagMs
public String getAvailabilityLagMs()
Defines how soon after record ingestion was the record consumed by Pinot. That is, the difference between the time the record was consumed and the time at which the record was ingested upstream.- Returns:
- Lag value in milliseconds
-
-