Module org.elasticsearch.server
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,- ToXContent
- Enclosing class:
- InternalTimeSeries
public static class InternalTimeSeries.InternalBucket
extends InternalMultiBucketAggregation.InternalBucket
implements TimeSeries.Bucket
- 
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 SummaryFieldsModifier and TypeFieldDescriptionprotected InternalAggregationsprotected longprotected longprotected final booleanFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionInternalBucket(Map<String, Object> key, long docCount, InternalAggregations aggregations, boolean keyed) InternalBucket(StreamInput in, boolean keyed) Read from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanlonggetKey()inthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucketgetPropertyMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentisFragment
- 
Field Details- 
bucketOrdprotected long bucketOrd
- 
keyedprotected final boolean keyed
- 
key
- 
docCountprotected long docCount
- 
aggregations
 
- 
- 
Constructor Details- 
InternalBucketpublic InternalBucket(Map<String, Object> key, long docCount, InternalAggregations aggregations, boolean keyed) 
- 
InternalBucketRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
getKey- Specified by:
- getKeyin interface- MultiBucketsAggregation.Bucket
- Returns:
- The key associated with the bucket
 
- 
getKeyAsString- Specified by:
- getKeyAsStringin interface- MultiBucketsAggregation.Bucket
- Returns:
- The key associated with the bucket as a string
 
- 
getDocCountpublic long getDocCount()- Specified by:
- getDocCountin interface- MultiBucketsAggregation.Bucket
- Returns:
- The number of documents that fall within this bucket
 
- 
getAggregations- Specified by:
- getAggregationsin interface- HasAggregations
- Specified by:
- getAggregationsin interface- MultiBucketsAggregation.Bucket
- Returns:
- The sub-aggregations of this bucket
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
 
-