Class SignificantLongTerms
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<A,B>
org.elasticsearch.search.aggregations.bucket.significant.InternalSignificantTerms<A,B>
org.elasticsearch.search.aggregations.bucket.significant.InternalMappedSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms
- All Implemented Interfaces:
java.lang.Iterable<SignificantTerms.Bucket>
,NamedWriteable
,Writeable
,ToXContent
,ToXContentFragment
,Aggregation
,MultiBucketsAggregation
,SignificantTerms
public class SignificantLongTerms extends InternalMappedSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
Result of the running the significant terms aggregation on a numeric field.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.common.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 Modifier and Type Field Description static java.lang.String
NAME
Fields inherited from class org.elasticsearch.search.aggregations.bucket.significant.InternalMappedSignificantTerms
bucketMap, buckets, format, significanceHeuristic, subsetSize, supersetSize
Fields inherited from class org.elasticsearch.search.aggregations.bucket.significant.InternalSignificantTerms
BG_COUNT, minDocCount, requiredSize, SCORE
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, name
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Constructor Summary
Constructors Constructor Description SignificantLongTerms(java.lang.String name, int requiredSize, long minDocCount, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)
SignificantLongTerms(StreamInput in)
Read from a stream. -
Method Summary
Modifier and Type Method Description protected SignificantLongTerms
create(long subsetSize, long supersetSize, java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)
SignificantLongTerms
create(java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)
Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket
createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket prototype)
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.protected org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket[]
createBucketsArray(int size)
Create an array to hold some buckets.java.lang.String
getWriteableName()
Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.aggregations.bucket.significant.InternalMappedSignificantTerms
doXContentBody, equals, getBucketByKey, getBuckets, getSignificanceHeuristic, getSubsetSize, getSupersetSize, hashCode, iterator, writeTermTypeInfoTo
Methods inherited from class org.elasticsearch.search.aggregations.bucket.significant.InternalSignificantTerms
doWriteTo, reduce, reduceBucket
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
countInnerBucket, countInnerBucket, getProperty, reducePipelines
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, toString, toXContent, writeSize, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
SignificantLongTerms
public SignificantLongTerms(java.lang.String name, int requiredSize, long minDocCount, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets) -
SignificantLongTerms
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
getWriteableName
public java.lang.String getWriteableName()Description copied from interface:NamedWriteable
Returns the name of the writeable object -
create
public SignificantLongTerms create(java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)Description copied from class:InternalMultiBucketAggregation
Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.- Specified by:
create
in classInternalMultiBucketAggregation<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
- Parameters:
buckets
- the buckets to use in the newAggregation
- Returns:
- the new
Aggregation
-
createBucket
public org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket prototype)Description copied from class:InternalMultiBucketAggregation
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.- Specified by:
createBucket
in classInternalMultiBucketAggregation<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
- Parameters:
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototype- Returns:
- the new bucket
-
create
protected SignificantLongTerms create(long subsetSize, long supersetSize, java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)- Specified by:
create
in classInternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
-
createBucketsArray
protected org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket[] createBucketsArray(int size)Description copied from class:InternalSignificantTerms
Create an array to hold some buckets. Used in collecting the results.- Specified by:
createBucketsArray
in classInternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
-