Class SignificantStringTerms
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<SignificantStringTerms,SignificantStringTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms
- All Implemented Interfaces:
Iterable<SignificantTerms.Bucket>
,NamedWriteable
,Writeable
,Aggregation
,MultiBucketsAggregation
,SignificantTerms
,ToXContent
,ToXContentFragment
public class SignificantStringTerms
extends InternalMappedSignificantTerms<SignificantStringTerms,SignificantStringTerms.Bucket>
Result of the running the significant terms aggregation on a String 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, InternalAggregation.ReduceContextBuilder
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
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 class org.elasticsearch.search.aggregations.bucket.terms.InternalMappedSignificantTerms
bucketMap, buckets, format, significanceHeuristic, subsetSize, supersetSize
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionSignificantStringTerms
(String name, int requiredSize, long minDocCount, Map<String, Object> metadata, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, List<SignificantStringTerms.Bucket> buckets) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected SignificantStringTerms
create
(long subsetSize, long supersetSize, List<SignificantStringTerms.Bucket> buckets) create
(List<SignificantStringTerms.Bucket> buckets) Create a new copy of thisAggregation
with the same settings as thisAggregation
and contains the provided buckets.createBucket
(InternalAggregations aggregations, SignificantStringTerms.Bucket prototype) Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.protected SignificantStringTerms.Bucket[]
createBucketsArray
(int size) Create an array to hold some buckets.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, writeTermTypeInfoTo
Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalSignificantTerms
doWriteTo, reduce, reduceBucket
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelines
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetadata, getName, getProperty, getType, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, sortValue, sortValue, 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
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SignificantStringTerms
public SignificantStringTerms(String name, int requiredSize, long minDocCount, Map<String, Object> metadata, DocValueFormat format, long subsetSize, long supersetSize, SignificanceHeuristic significanceHeuristic, List<SignificantStringTerms.Bucket> buckets) -
SignificantStringTerms
Read from a stream.- Throws:
IOException
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object -
create
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<SignificantStringTerms,
SignificantStringTerms.Bucket> - Parameters:
buckets
- the buckets to use in the newAggregation
- Returns:
- the new
Aggregation
-
createBucket
public SignificantStringTerms.Bucket createBucket(InternalAggregations aggregations, SignificantStringTerms.Bucket prototype) Description copied from class:InternalMultiBucketAggregation
Create a newInternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket and aggregations.- Specified by:
createBucket
in classInternalMultiBucketAggregation<SignificantStringTerms,
SignificantStringTerms.Bucket> - Parameters:
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototype- Returns:
- the new bucket
-
create
protected SignificantStringTerms create(long subsetSize, long supersetSize, List<SignificantStringTerms.Bucket> buckets) - Specified by:
create
in classInternalSignificantTerms<SignificantStringTerms,
SignificantStringTerms.Bucket>
-
createBucketsArray
Description copied from class:InternalSignificantTerms
Create an array to hold some buckets. Used in collecting the results.- Specified by:
createBucketsArray
in classInternalSignificantTerms<SignificantStringTerms,
SignificantStringTerms.Bucket>
-