Module org.elasticsearch.server
Class DoubleBounds
java.lang.Object
org.elasticsearch.search.aggregations.bucket.histogram.DoubleBounds
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentFragment
Represent hard_bounds and extended_bounds in histogram aggregations.
 This class is similar to 
LongBounds used in date histograms, but is using longs to store data. LongBounds and DoubleBounds are
 not used interchangeably and therefore don't share any common interfaces except for serialization.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionDoubleBounds(Double min, Double max) Construct with bounds.Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontain(double value) booleanstatic DoublegetEffectiveMax(DoubleBounds bounds) returns bounds max if it is defined or NEGATIVE_INFINITY otherwisestatic doublegetEffectiveMin(DoubleBounds bounds) returns bounds min if it is defined or POSITIVE_INFINITY otherwisegetMax()getMin()inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
DoubleBoundsConstruct with bounds.
- 
DoubleBoundsRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
hashCodepublic int hashCode()
- 
equals
- 
getMin
- 
getMax
- 
getEffectiveMinreturns bounds min if it is defined or POSITIVE_INFINITY otherwise
- 
getEffectiveMaxreturns bounds max if it is defined or NEGATIVE_INFINITY otherwise
- 
containpublic boolean contain(double value) 
- 
toString
 
-