Module org.elasticsearch.server
Class TermsValuesSourceBuilder
java.lang.Object
org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder<TermsValuesSourceBuilder>
org.elasticsearch.search.aggregations.bucket.composite.TermsValuesSourceBuilder
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class TermsValuesSourceBuilder
extends CompositeValuesSourceBuilder<TermsValuesSourceBuilder>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder
nameFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoXContentBody(XContentBuilder builder, ToXContent.Params params) protected ValuesSourceTypeprotected CompositeValuesSourceConfiginnerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) Actually build the values source and its associated configuration.protected voidinnerWriteTo(StreamOutput out) booleansupportsParallelCollection(ToLongFunction<String> fieldCardinalityResolver) Return false if this composite source does not support parallel collection.type()Methods inherited from class org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceBuilder
build, equals, field, field, format, format, hashCode, missingBucket, missingBucket, missingOrder, missingOrder, missingOrder, name, order, order, order, script, script, timeZone, toXContent, userValuetypeHint, userValuetypeHint, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
TermsValuesSourceBuilder
-
TermsValuesSourceBuilder
- Throws:
IOException
-
-
Method Details
-
innerWriteTo
- Specified by:
innerWriteToin classCompositeValuesSourceBuilder<TermsValuesSourceBuilder>- Throws:
IOException
-
doXContentBody
- Specified by:
doXContentBodyin classCompositeValuesSourceBuilder<TermsValuesSourceBuilder>- Throws:
IOException
-
type
-
getDefaultValuesSourceType
- Specified by:
getDefaultValuesSourceTypein classCompositeValuesSourceBuilder<TermsValuesSourceBuilder>
-
innerBuild
protected CompositeValuesSourceConfig innerBuild(ValuesSourceRegistry registry, ValuesSourceConfig config) throws IOException Description copied from class:CompositeValuesSourceBuilderActually build the values source and its associated configuration.- Specified by:
innerBuildin classCompositeValuesSourceBuilder<TermsValuesSourceBuilder>- Throws:
IOException
-
supportsParallelCollection
Description copied from class:CompositeValuesSourceBuilderReturn false if this composite source does not support parallel collection. As a result, a request including such aggregation is always executed sequentially despite concurrency is enabled for the query phase.- Overrides:
supportsParallelCollectionin classCompositeValuesSourceBuilder<TermsValuesSourceBuilder>
-