Class Rounding.Builder

java.lang.Object
org.elasticsearch.common.Rounding.Builder
Enclosing class:
Rounding

public static class Rounding.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(Rounding.DateTimeUnit unit)
    • Builder

      public Builder(org.elasticsearch.core.TimeValue interval)
  • Method Details

    • timeZone

      public Rounding.Builder timeZone(ZoneId timeZone)
    • offset

      public Rounding.Builder offset(long offset)
      Sets the offset of this rounding from the normal beginning of the interval. Use this to start days at 6am or months on the 15th.
      Parameters:
      offset - the offset, in milliseconds
    • build

      public Rounding build()