Package org.elasticsearch.common
Class Rounding.Builder
java.lang.Object
org.elasticsearch.common.Rounding.Builder
- Enclosing class:
- Rounding
public static class Rounding.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder(Rounding.DateTimeUnit unit)
Builder(org.elasticsearch.common.unit.TimeValue interval)
-
Method Summary
Modifier and Type Method Description Rounding
build()
Rounding.Builder
offset(long offset)
Sets the offset of this rounding from the normal beginning of the interval.Rounding.Builder
timeZone(java.time.ZoneId timeZone)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
-
Builder
public Builder(org.elasticsearch.common.unit.TimeValue interval)
-
-
Method Details
-
timeZone
-
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
-