public class SignificantStringTerms extends InternalMappedSignificantTerms<SignificantStringTerms,SignificantStringTerms.Bucket>
Modifier and Type | Class and Description |
---|---|
static class |
SignificantStringTerms.Bucket |
InternalMultiBucketAggregation.InternalBucket
InternalAggregation.ReduceContext
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
bucketMap, buckets, format, significanceHeuristic, subsetSize, supersetSize
BG_COUNT, minDocCount, requiredSize, SCORE
metaData, name
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
SignificantStringTerms(StreamInput in)
Read from a stream.
|
SignificantStringTerms(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<SignificantStringTerms.Bucket> buckets) |
Modifier and Type | Method and Description |
---|---|
SignificantStringTerms |
create(java.util.List<SignificantStringTerms.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
protected SignificantStringTerms |
create(long subsetSize,
long supersetSize,
java.util.List<SignificantStringTerms.Bucket> buckets) |
SignificantStringTerms.Bucket |
createBucket(InternalAggregations aggregations,
SignificantStringTerms.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected SignificantStringTerms.Bucket[] |
createBucketsArray(int size)
Create an array to hold some buckets.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
doXContentBody, getBucketByKey, getBuckets, getSignificanceHeuristic, getSubsetSize, getSupersetSize, iterator, writeTermTypeInfoTo
doReduce, doWriteTo
getProperty
getMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getType
isFragment, toXContent
public static final java.lang.String NAME
public SignificantStringTerms(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<SignificantStringTerms.Bucket> buckets)
public SignificantStringTerms(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
public SignificantStringTerms create(java.util.List<SignificantStringTerms.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<SignificantStringTerms,SignificantStringTerms.Bucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public SignificantStringTerms.Bucket createBucket(InternalAggregations aggregations, SignificantStringTerms.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<SignificantStringTerms,SignificantStringTerms.Bucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypeprotected SignificantStringTerms create(long subsetSize, long supersetSize, java.util.List<SignificantStringTerms.Bucket> buckets)
create
in class InternalSignificantTerms<SignificantStringTerms,SignificantStringTerms.Bucket>
protected SignificantStringTerms.Bucket[] createBucketsArray(int size)
InternalSignificantTerms
createBucketsArray
in class InternalSignificantTerms<SignificantStringTerms,SignificantStringTerms.Bucket>