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>
Aggregation.CommonFields
InternalAggregation.ReduceContext
InternalMultiBucketAggregation.InternalBucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
TYPED_KEYS_DELIMITER
metaData, name
bucketMap, buckets, format, significanceHeuristic, subsetSize, supersetSize
BG_COUNT, minDocCount, requiredSize, SCORE
EMPTY_PARAMS
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.
|
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 this
Aggregation with the same settings as
this Aggregation 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 new
InternalMultiBucketAggregation.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 object
|
getMetaData, getName, getType
equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
doEquals, doHashCode, doXContentBody, getBucketByKey, getBuckets, getSignificanceHeuristic, getSubsetSize, getSupersetSize, iterator, writeTermTypeInfoTo
countInnerBucket, countInnerBucket, getProperty
doReduce, doWriteTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toXContent
isFragment
public static final java.lang.String NAME
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)
public SignificantLongTerms(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
public SignificantLongTerms create(java.util.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, java.util.List<org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket> buckets)
create
in class InternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>
protected org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket[] createBucketsArray(int size)
InternalSignificantTerms
createBucketsArray
in class InternalSignificantTerms<SignificantLongTerms,org.elasticsearch.search.aggregations.bucket.significant.SignificantLongTerms.Bucket>