public class UnmappedSignificantTerms extends InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UnmappedSignificantTerms.Bucket
Concrete type that can't be built because Java needs a concrete type so
InternalTerms.Bucket can have a self type but
UnmappedTerms doesn't ever need to build it because it never returns any buckets. |
InternalMultiBucketAggregation.InternalBucketInternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
BG_COUNT, minDocCount, requiredSize, SCOREmetaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
UnmappedSignificantTerms(StreamInput in)
Read from a stream.
|
UnmappedSignificantTerms(java.lang.String name,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
| Modifier and Type | Method and Description |
|---|---|
UnmappedSignificantTerms |
create(java.util.List<UnmappedSignificantTerms.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
protected UnmappedSignificantTerms |
create(long subsetSize,
long supersetSize,
java.util.List<UnmappedSignificantTerms.Bucket> buckets) |
UnmappedSignificantTerms.Bucket |
createBucket(InternalAggregations aggregations,
UnmappedSignificantTerms.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected UnmappedSignificantTerms.Bucket[] |
createBucketsArray(int size)
Create an array to hold some buckets.
|
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
SignificantTerms.Bucket |
getBucketByKey(java.lang.String term)
Get the bucket for the given term, or null if there is no such bucket.
|
java.util.List<UnmappedSignificantTerms.Bucket> |
getBuckets() |
protected SignificanceHeuristic |
getSignificanceHeuristic() |
protected long |
getSubsetSize() |
protected long |
getSupersetSize() |
java.lang.String |
getType() |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
java.util.Iterator<SignificantTerms.Bucket> |
iterator() |
protected void |
writeTermTypeInfoTo(StreamOutput out) |
doEquals, doHashCode, doWriteTogetPropertyequals, getMetaData, getName, getProperty, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaData, getNameisFragmenttoXContentpublic static final java.lang.String NAME
public UnmappedSignificantTerms(java.lang.String name,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData)
public UnmappedSignificantTerms(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void writeTermTypeInfoTo(StreamOutput out) throws java.io.IOException
writeTermTypeInfoTo in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>java.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablepublic java.lang.String getType()
getType in interface AggregationgetType in class InternalAggregationpublic UnmappedSignificantTerms create(java.util.List<UnmappedSignificantTerms.Bucket> buckets)
InternalMultiBucketAggregationAggregation with the same settings as
this Aggregation and contains the provided buckets.create in class InternalMultiBucketAggregation<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>buckets - the buckets to use in the new AggregationAggregationpublic UnmappedSignificantTerms.Bucket createBucket(InternalAggregations aggregations, UnmappedSignificantTerms.Bucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations.createBucket in class InternalMultiBucketAggregation<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>aggregations - the aggregations for the new bucketprototype - the bucket to use as a prototypeprotected UnmappedSignificantTerms create(long subsetSize, long supersetSize, java.util.List<UnmappedSignificantTerms.Bucket> buckets)
create in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOExceptionprotected UnmappedSignificantTerms.Bucket[] createBucketsArray(int size)
InternalSignificantTermscreateBucketsArray in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>public java.util.Iterator<SignificantTerms.Bucket> iterator()
public java.util.List<UnmappedSignificantTerms.Bucket> getBuckets()
getBuckets in interface MultiBucketsAggregationgetBuckets in interface SignificantTermsgetBuckets in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>public SignificantTerms.Bucket getBucketByKey(java.lang.String term)
SignificantTermsprotected SignificanceHeuristic getSignificanceHeuristic()
getSignificanceHeuristic in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>protected long getSubsetSize()
getSubsetSize in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>protected long getSupersetSize()
getSupersetSize in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>