public static class RangeAggregator.Range extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected double |
from |
static ParseField |
FROM_FIELD |
protected java.lang.String |
fromAsStr |
protected java.lang.String |
key |
static ParseField |
KEY_FIELD |
protected double |
to |
static ParseField |
TO_FIELD |
protected java.lang.String |
toAsStr |
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
|
Range(StreamInput in)
Read from a stream.
|
|
Range(java.lang.String key,
java.lang.Double from,
java.lang.Double to) |
protected |
Range(java.lang.String key,
java.lang.Double from,
java.lang.String fromAsStr,
java.lang.Double to,
java.lang.String toAsStr) |
|
Range(java.lang.String key,
java.lang.String from,
java.lang.String to) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static RangeAggregator.Range |
fromXContent(XContentParser parser) |
int |
hashCode() |
RangeAggregator.Range |
process(DocValueFormat parser,
SearchContext context) |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final ParseField KEY_FIELD
public static final ParseField FROM_FIELD
public static final ParseField TO_FIELD
protected final java.lang.String key
protected final double from
protected final java.lang.String fromAsStr
protected final double to
protected final java.lang.String toAsStr
public Range(java.lang.String key, java.lang.Double from, java.lang.Double to)
public Range(java.lang.String key, java.lang.String from, java.lang.String to)
public Range(StreamInput in) throws java.io.IOException
java.io.IOException
protected Range(java.lang.String key, java.lang.Double from, java.lang.String fromAsStr, java.lang.Double to, java.lang.String toAsStr)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.String toString()
toString
in class java.lang.Object
public RangeAggregator.Range process(DocValueFormat parser, SearchContext context)
public static RangeAggregator.Range fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object