Class InternalFilters.InternalBucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.filter.InternalFilters.InternalBucket
- All Implemented Interfaces:
Writeable
,Filters.Bucket
,MultiBucketsAggregation.Bucket
,HasAggregations
,ToXContent
- Enclosing class:
- InternalFilters
public static class InternalFilters.InternalBucket
extends InternalMultiBucketAggregation.InternalBucket
implements Filters.Bucket
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionInternalBucket
(String 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()
toXContent
(XContentBuilder builder, 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
-
Constructor Details
-
InternalBucket
-
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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-