public class PercentileRanksAggregationBuilder extends ValuesSourceAggregationBuilder.LeafOnly<ValuesSource.Numeric,PercentileRanksAggregationBuilder>
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>
AggregationBuilder.CommonFields
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static ParseField |
VALUES_FIELD |
config
metaData
factoriesBuilder, name
EMPTY_PARAMS
Constructor and Description |
---|
PercentileRanksAggregationBuilder(StreamInput in)
Read from a stream.
|
PercentileRanksAggregationBuilder(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
double |
compression()
Expert: get the compression.
|
PercentileRanksAggregationBuilder |
compression(double compression)
Expert: set the compression.
|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
getType()
The name of the type of aggregation built by this builder.
|
protected ValuesSourceAggregatorFactory<ValuesSource.Numeric,?> |
innerBuild(SearchContext context,
ValuesSourceConfig<ValuesSource.Numeric> config,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
innerEquals(java.lang.Object obj) |
protected int |
innerHashCode() |
protected void |
innerWriteTo(StreamOutput out)
Write subclass's state to the stream.
|
boolean |
keyed()
Get whether the XContent response should be keyed
|
PercentileRanksAggregationBuilder |
keyed(boolean keyed)
Set whether the XContent response should be keyed
|
PercentilesMethod |
method() |
PercentileRanksAggregationBuilder |
method(PercentilesMethod method) |
int |
numberOfSignificantValueDigits()
Expert: get the number of significant digits in the values.
|
PercentileRanksAggregationBuilder |
numberOfSignificantValueDigits(int numberOfSignificantValueDigits)
Expert: set the number of significant digits in the values.
|
static AggregationBuilder |
parse(java.lang.String aggregationName,
QueryParseContext context) |
double[] |
values()
Get the values to compute percentiles from.
|
PercentileRanksAggregationBuilder |
values(double... values)
Set the values to compute percentiles from.
|
subAggregations
doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueType
build, equals, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, toXContent, writeTo
getName
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final java.lang.String NAME
public static final ParseField VALUES_FIELD
public PercentileRanksAggregationBuilder(java.lang.String name)
public PercentileRanksAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
public static AggregationBuilder parse(java.lang.String aggregationName, QueryParseContext context) throws java.io.IOException
java.io.IOException
protected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilder
innerWriteTo
in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,PercentileRanksAggregationBuilder>
java.io.IOException
public PercentileRanksAggregationBuilder values(double... values)
public double[] values()
public PercentileRanksAggregationBuilder keyed(boolean keyed)
public boolean keyed()
public PercentileRanksAggregationBuilder numberOfSignificantValueDigits(int numberOfSignificantValueDigits)
PercentilesMethod.HDR
.public int numberOfSignificantValueDigits()
PercentilesMethod.HDR
.public PercentileRanksAggregationBuilder compression(double compression)
PercentilesMethod.TDIGEST
.public double compression()
PercentilesMethod.TDIGEST
.public PercentileRanksAggregationBuilder method(PercentilesMethod method)
public PercentilesMethod method()
protected ValuesSourceAggregatorFactory<ValuesSource.Numeric,?> innerBuild(SearchContext context, ValuesSourceConfig<ValuesSource.Numeric> config, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild
in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,PercentileRanksAggregationBuilder>
java.io.IOException
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,PercentileRanksAggregationBuilder>
java.io.IOException
protected boolean innerEquals(java.lang.Object obj)
innerEquals
in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,PercentileRanksAggregationBuilder>
protected int innerHashCode()
innerHashCode
in class ValuesSourceAggregationBuilder<ValuesSource.Numeric,PercentileRanksAggregationBuilder>
public java.lang.String getType()
BaseAggregationBuilder