Struct elastiql::aggregation::types::VariableWidthHistogram [−][src]
Expand description
Variable width histogram is a multi-bucket aggregation similar to histogram. However, the width of each bucket is not specified. Rather, a target number of buckets is provided and bucket intervals are dynamically determined based on the document distribution. This is done using a simple one-pass document clustering algorithm that aims to obtain low distances between bucket centroids. Unlike other multi-bucket aggregations, the intervals will not necessarily have a uniform width.
Note: until GraphQL Union input types are supported, either
calendarInterval
or fixedInterval
must be specified but not both.
Fields
field: String
The field to perform the aggregation over.
buckets: u64
The target number of buckets.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for VariableWidthHistogram
impl Send for VariableWidthHistogram
impl Sync for VariableWidthHistogram
impl Unpin for VariableWidthHistogram
impl UnwindSafe for VariableWidthHistogram
Blanket Implementations
Mutably borrows from an owned value. Read more