Class SignificantLongTerms
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<A,B>
org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms<A,B>
org.elasticsearch.search.aggregations.bucket.terms.InternalMappedSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms
- All Implemented Interfaces:
java.lang.Iterable<SignificantTerms.Bucket>,NamedWriteable,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,Aggregation,MultiBucketsAggregation,SignificantTerms
public class SignificantLongTerms extends InternalMappedSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.terms.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.InternalBucketNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext, InternalAggregation.ReduceContextBuilderNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested 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.StringNAMEFields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalMappedSignificantTerms
bucketMap, buckets, format, significanceHeuristic, subsetSize, supersetSizeFields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms
BG_COUNT, minDocCount, requiredSize, SCOREFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, nameFields 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.Map<java.lang.String,java.lang.Object> metadata, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, java.util.List<org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket> buckets)SignificantLongTerms(StreamInput in)Read from a stream. -
Method Summary
Modifier and Type Method Description protected SignificantLongTermscreate(long subsetSize, long supersetSize, java.util.List<org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket> buckets)SignificantLongTermscreate(java.util.List<org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket> buckets)Create a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.BucketcreateBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket prototype)Create a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.protected org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket[]createBucketsArray(int size)Create an array to hold some buckets.java.lang.StringgetWriteableName()Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalMappedSignificantTerms
doXContentBody, equals, getBucketByKey, getBuckets, getSignificanceHeuristic, getSubsetSize, getSupersetSize, hashCode, iterator, writeTermTypeInfoToMethods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms
doWriteTo, reduce, reduceBucketMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, sortValue, sortValue, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.Map<java.lang.String,java.lang.Object> metadata, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, java.util.List<org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket> buckets) -
SignificantLongTerms
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
getWriteableName
public java.lang.String getWriteableName()Description copied from interface:NamedWriteableReturns the name of the writeable object -
create
public SignificantLongTerms create(java.util.List<org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket> buckets)Description copied from class:InternalMultiBucketAggregationCreate a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.- Specified by:
createin classInternalMultiBucketAggregation<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket>- Parameters:
buckets- the buckets to use in the newAggregation- Returns:
- the new
Aggregation
-
createBucket
public org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket prototype)Description copied from class:InternalMultiBucketAggregationCreate a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.- Specified by:
createBucketin classInternalMultiBucketAggregation<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.terms.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.terms.SignificantLongTerms.Bucket> buckets)- Specified by:
createin classInternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket>
-
createBucketsArray
protected org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket[] createBucketsArray(int size)Description copied from class:InternalSignificantTermsCreate an array to hold some buckets. Used in collecting the results.- Specified by:
createBucketsArrayin classInternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms.Bucket>
-