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 concrent 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.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 |
BG_COUNT, minDocCount, requiredSize, SCORE
metaData, name
TYPED_KEYS_DELIMITER
EMPTY_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) |
doWriteTo
getProperty
getMetaData, getName, getProperty, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName
isFragment, toXContent
public 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.IOException
protected void writeTermTypeInfoTo(StreamOutput out) throws java.io.IOException
writeTermTypeInfoTo
in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
public java.lang.String getType()
getType
in interface Aggregation
getType
in class InternalAggregation
public UnmappedSignificantTerms create(java.util.List<UnmappedSignificantTerms.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
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 Aggregation
Aggregation
public UnmappedSignificantTerms.Bucket createBucket(InternalAggregations aggregations, UnmappedSignificantTerms.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.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 InternalAggregation
java.io.IOException
protected UnmappedSignificantTerms.Bucket[] createBucketsArray(int size)
InternalSignificantTerms
createBucketsArray
in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>
public java.util.Iterator<SignificantTerms.Bucket> iterator()
public java.util.List<UnmappedSignificantTerms.Bucket> getBuckets()
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface SignificantTerms
getBuckets
in class InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>
public SignificantTerms.Bucket getBucketByKey(java.lang.String term)
SignificantTerms
protected 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>