Package org.opennms.nephron.cortex
Class EventTimestampIndexer
- java.lang.Object
-
- org.opennms.nephron.cortex.EventTimestampIndexer
-
public class EventTimestampIndexer extends Object
Assigns indexes to event timestamps in order satisfy Cortex's time ordering constraint for samples.For each time series samples must be written ordered by time. This class assigns index numbers to event timestamps that can be used as label values to differentiate different time series. Index numbers are guaranteed to be increasing for each event timestamp and event timestamps are guaranteed to be increasing for each index number.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventTimestampIndexer.EventTimestampIndexerCoder
-
Constructor Summary
Constructors Constructor Description EventTimestampIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfindIndex(org.joda.time.Instant eventTimestamp)Find an index for the given event timestamp that can be used as a label value for a sample of that event timestamp.org.joda.time.InstantnewestEventTimestamp()
-