public class SignificantLongTerms extends InternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
InternalMultiBucketAggregation.InternalBucket
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static AggregationStreams.Stream |
STREAM |
static InternalAggregation.Type |
TYPE |
bucketMap, buckets, minDocCount, requiredSize, significanceHeuristic, subsetSize, supersetSize
metaData, name
EMPTY_PARAMS
Constructor and Description |
---|
SignificantLongTerms(long subsetSize,
long supersetSize,
String name,
ValueFormatter formatter,
int requiredSize,
long minDocCount,
SignificanceHeuristic significanceHeuristic,
List<? extends InternalSignificantTerms.Bucket> buckets,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
Modifier and Type | Method and Description |
---|---|
SignificantLongTerms |
create(List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
protected SignificantLongTerms |
create(long subsetSize,
long supersetSize,
List<InternalSignificantTerms.Bucket> buckets,
InternalSignificantTerms prototype) |
org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket |
createBucket(InternalAggregations aggregations,
org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected void |
doReadFrom(StreamInput in) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
static void |
registerStreams() |
InternalAggregation.Type |
type() |
doReduce, getBucketByKey, getBuckets, iterator
getProperty
getMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getProperty
toXContent
readFrom, writeTo
public static final InternalAggregation.Type TYPE
public static final AggregationStreams.Stream STREAM
public SignificantLongTerms(long subsetSize, long supersetSize, String name, ValueFormatter formatter, int requiredSize, long minDocCount, SignificanceHeuristic significanceHeuristic, List<? extends InternalSignificantTerms.Bucket> buckets, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStreams()
public InternalAggregation.Type type()
type
in class InternalAggregation
InternalAggregation.Type
of this aggregationpublic SignificantLongTerms create(List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypeprotected SignificantLongTerms create(long subsetSize, long supersetSize, List<InternalSignificantTerms.Bucket> buckets, InternalSignificantTerms prototype)
create
in class InternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
protected void doReadFrom(StreamInput in) throws IOException
doReadFrom
in class InternalAggregation
IOException
protected void doWriteTo(StreamOutput out) throws IOException
doWriteTo
in class InternalAggregation
IOException
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContentBody
in class InternalAggregation
IOException
Copyright © 2009–2016. All rights reserved.