public class StringTerms extends InternalMappedTerms<StringTerms,StringTerms.Bucket>
TermsAggregator when the field is a String.| Modifier and Type | Class and Description |
|---|---|
static class |
StringTerms.Bucket |
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 |
bucketMap, buckets, docCountError, format, otherDocCount, shardSize, showTermDocCountErrorDOC_COUNT_ERROR_UPPER_BOUND_FIELD_NAME, minDocCount, order, requiredSize, SUM_OF_OTHER_DOC_COUNTSmetaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
StringTerms(StreamInput in)
Read from a stream.
|
StringTerms(java.lang.String name,
BucketOrder order,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData,
DocValueFormat format,
int shardSize,
boolean showTermDocCountError,
long otherDocCount,
java.util.List<StringTerms.Bucket> buckets,
long docCountError) |
| Modifier and Type | Method and Description |
|---|---|
StringTerms |
create(java.util.List<StringTerms.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
protected StringTerms |
create(java.lang.String name,
java.util.List<StringTerms.Bucket> buckets,
long docCountError,
long otherDocCount) |
StringTerms.Bucket |
createBucket(InternalAggregations aggregations,
StringTerms.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected StringTerms.Bucket[] |
createBucketsArray(int size)
Create an array to hold some buckets.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
doEquals, doHashCode, doXContentBody, getBucketByKey, getBuckets, getDocCountError, getShardSize, getSumOfOtherDocCounts, setDocCountError, writeTermTypeInfoTodoReduce, doWriteTo, doXContentCommongetPropertyequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentpublic static final java.lang.String NAME
public StringTerms(java.lang.String name,
BucketOrder order,
int requiredSize,
long minDocCount,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData,
DocValueFormat format,
int shardSize,
boolean showTermDocCountError,
long otherDocCount,
java.util.List<StringTerms.Bucket> buckets,
long docCountError)
public StringTerms(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablepublic StringTerms create(java.util.List<StringTerms.Bucket> buckets)
InternalMultiBucketAggregationAggregation with the same settings as
this Aggregation and contains the provided buckets.create in class InternalMultiBucketAggregation<StringTerms,StringTerms.Bucket>buckets - the buckets to use in the new AggregationAggregationpublic StringTerms.Bucket createBucket(InternalAggregations aggregations, StringTerms.Bucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations.createBucket in class InternalMultiBucketAggregation<StringTerms,StringTerms.Bucket>aggregations - the aggregations for the new bucketprototype - the bucket to use as a prototypeprotected StringTerms create(java.lang.String name, java.util.List<StringTerms.Bucket> buckets, long docCountError, long otherDocCount)
create in class InternalTerms<StringTerms,StringTerms.Bucket>protected StringTerms.Bucket[] createBucketsArray(int size)
InternalTermscreateBucketsArray in class InternalTerms<StringTerms,StringTerms.Bucket>