java.lang.Iterable<SignificantTerms.Bucket>
, NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, Aggregation
, MultiBucketsAggregation
, SignificantTerms
public class UnmappedSignificantTerms extends InternalSignificantTerms<UnmappedSignificantTerms,UnmappedSignificantTerms.Bucket>
Modifier and Type | Class | 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. |
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
BG_COUNT, minDocCount, requiredSize, SCORE
EMPTY_PARAMS
Constructor | Description |
---|---|
UnmappedSignificantTerms(java.lang.String name,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
|
UnmappedSignificantTerms(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | Description |
---|---|---|
protected UnmappedSignificantTerms |
create(long subsetSize,
long supersetSize,
java.util.List<UnmappedSignificantTerms.Bucket> buckets) |
|
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. |
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) |
getMetaData, getName
equals, getMetaData, getName, getProperty, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
countInnerBucket, countInnerBucket, getProperty
doEquals, doHashCode, doWriteTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toXContent
isFragment
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>