Class TimestampBounds

java.lang.Object
org.elasticsearch.index.TimestampBounds

public class TimestampBounds extends Object
Bounds for the @timestamp field on this index.
  • Constructor Details

    • TimestampBounds

      public TimestampBounds(Instant startTime, Instant endTime)
  • Method Details

    • updateEndTime

      public static TimestampBounds updateEndTime(TimestampBounds current, Instant newEndTime)
      Returns:
      an updated instance based on current instance with a new end time.
    • startTime

      public long startTime()
      The first valid @timestamp for the index.
    • endTime

      public long endTime()
      The first invalid @timestamp for the index.
    • toString

      public String toString()
      Overrides:
      toString in class Object