Class InternalTimeSeries.InternalBucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.timeseries.InternalTimeSeries.InternalBucket
- All Implemented Interfaces:
Writeable
,MultiBucketsAggregation.Bucket
,HasAggregations
,TimeSeries.Bucket
,org.elasticsearch.xcontent.ToXContent
- Enclosing class:
- InternalTimeSeries
public static class InternalTimeSeries.InternalBucket
extends InternalMultiBucketAggregation.InternalBucket
implements TimeSeries.Bucket
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionprotected InternalAggregations
protected long
protected long
protected final boolean
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionInternalBucket
(Map<String, Object> key, long docCount, InternalAggregations aggregations, boolean keyed) InternalBucket
(StreamInput in, boolean keyed) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getKey()
int
hashCode()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getProperty
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Field Details
-
bucketOrd
protected long bucketOrd -
keyed
protected final boolean keyed -
key
-
docCount
protected long docCount -
aggregations
-
-
Constructor Details
-
InternalBucket
public InternalBucket(Map<String, Object> key, long docCount, InternalAggregations aggregations, boolean keyed) -
InternalBucket
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getKey
- Specified by:
getKey
in interfaceMultiBucketsAggregation.Bucket
- Returns:
- The key associated with the bucket
-
getKeyAsString
- Specified by:
getKeyAsString
in interfaceMultiBucketsAggregation.Bucket
- Returns:
- The key associated with the bucket as a string
-
getDocCount
public long getDocCount()- Specified by:
getDocCount
in interfaceMultiBucketsAggregation.Bucket
- Returns:
- The number of documents that fall within this bucket
-
getAggregations
- Specified by:
getAggregations
in interfaceHasAggregations
- Specified by:
getAggregations
in interfaceMultiBucketsAggregation.Bucket
- Returns:
- The sub-aggregations of this bucket
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-