Class AutoDateHistogramAggregationBuilder.RoundingInfo
java.lang.Object
org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder.RoundingInfo
- All Implemented Interfaces:
Writeable
- Enclosing class:
- AutoDateHistogramAggregationBuilder
public static class AutoDateHistogramAggregationBuilder.RoundingInfo extends java.lang.Object implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors Constructor Description RoundingInfo(StreamInput in)RoundingInfo(Rounding.DateTimeUnit dateTimeUnit, java.time.ZoneId timeZone, long roughEstimateDurationMillis, java.lang.String unitAbbreviation, int... innerIntervals) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDateTimeUnit()intgetMaximumInnerInterval()longgetRoughEstimateDurationMillis()inthashCode()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
RoundingInfo
public RoundingInfo(Rounding.DateTimeUnit dateTimeUnit, java.time.ZoneId timeZone, long roughEstimateDurationMillis, java.lang.String unitAbbreviation, int... innerIntervals) -
RoundingInfo
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
getMaximumInnerInterval
public int getMaximumInnerInterval() -
getDateTimeUnit
public java.lang.String getDateTimeUnit() -
getRoughEstimateDurationMillis
public long getRoughEstimateDurationMillis() -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-