public class GetPercentilesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Groups the aggregated values that match the query into percentile groupings.
The default percentile groupings are: 1,5,25,50,75,95,99, although you can
specify your own when you call GetPercentiles
. This function
returns a value for each percentile group specified (or the default
percentile groupings). The percentile group "1" contains the aggregated field
value that occurs in approximately one percent of the values that match the
query. The percentile group "5" contains the aggregated field value that
occurs in approximately five percent of the values that match the query, and
so on. The result is an approximation, the more values that match the query,
the more accurate the percentile values.
Constructor and Description |
---|
GetPercentilesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAggregationField()
The field to aggregate.
|
java.lang.String |
getIndexName()
The name of the index to search.
|
java.util.List<java.lang.Double> |
getPercents()
The percentile groups returned.
|
java.lang.String |
getQueryString()
The query string.
|
java.lang.String |
getQueryVersion()
The query version.
|
int |
hashCode() |
void |
setAggregationField(java.lang.String aggregationField)
The field to aggregate.
|
void |
setIndexName(java.lang.String indexName)
The name of the index to search.
|
void |
setPercents(java.util.Collection<java.lang.Double> percents)
The percentile groups returned.
|
void |
setQueryString(java.lang.String queryString)
The query string.
|
void |
setQueryVersion(java.lang.String queryVersion)
The query version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPercentilesRequest |
withAggregationField(java.lang.String aggregationField)
The field to aggregate.
|
GetPercentilesRequest |
withIndexName(java.lang.String indexName)
The name of the index to search.
|
GetPercentilesRequest |
withPercents(java.util.Collection<java.lang.Double> percents)
The percentile groups returned.
|
GetPercentilesRequest |
withPercents(java.lang.Double... percents)
The percentile groups returned.
|
GetPercentilesRequest |
withQueryString(java.lang.String queryString)
The query string.
|
GetPercentilesRequest |
withQueryVersion(java.lang.String queryVersion)
The query version.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getIndexName()
The name of the index to search.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the index to search.
public void setIndexName(java.lang.String indexName)
The name of the index to search.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
indexName
- The name of the index to search.
public GetPercentilesRequest withIndexName(java.lang.String indexName)
The name of the index to search.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
indexName
- The name of the index to search.
public java.lang.String getQueryString()
The query string.
Constraints:
Length: 1 -
The query string.
public void setQueryString(java.lang.String queryString)
The query string.
Constraints:
Length: 1 -
queryString
- The query string.
public GetPercentilesRequest withQueryString(java.lang.String queryString)
The query string.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
queryString
- The query string.
public java.lang.String getAggregationField()
The field to aggregate.
Constraints:
Length: 1 -
The field to aggregate.
public void setAggregationField(java.lang.String aggregationField)
The field to aggregate.
Constraints:
Length: 1 -
aggregationField
- The field to aggregate.
public GetPercentilesRequest withAggregationField(java.lang.String aggregationField)
The field to aggregate.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
aggregationField
- The field to aggregate.
public java.lang.String getQueryVersion()
The query version.
The query version.
public void setQueryVersion(java.lang.String queryVersion)
The query version.
queryVersion
- The query version.
public GetPercentilesRequest withQueryVersion(java.lang.String queryVersion)
The query version.
Returns a reference to this object so that method calls can be chained together.
queryVersion
- The query version.
public java.util.List<java.lang.Double> getPercents()
The percentile groups returned.
The percentile groups returned.
public void setPercents(java.util.Collection<java.lang.Double> percents)
The percentile groups returned.
percents
- The percentile groups returned.
public GetPercentilesRequest withPercents(java.lang.Double... percents)
The percentile groups returned.
Returns a reference to this object so that method calls can be chained together.
percents
- The percentile groups returned.
public GetPercentilesRequest withPercents(java.util.Collection<java.lang.Double> percents)
The percentile groups returned.
Returns a reference to this object so that method calls can be chained together.
percents
- The percentile groups returned.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.