Struct elasticsearch_dsl::search::aggregations::bucket::SamplerAggregation
source · [−]pub struct SamplerAggregation { /* private fields */ }Expand description
A filtering aggregation used to limit any sub aggregations’ processing to a sample of the top-scoring documents.
Implementations
sourceimpl SamplerAggregation
impl SamplerAggregation
sourcepub fn shard_size(self, shard_size: u64) -> Self
pub fn shard_size(self, shard_size: u64) -> Self
The shard_size parameter limits how many top-scoring documents are collected in the sample processed on each shard. The default value is 100.
sourcepub fn aggregate<N, A>(self, aggregation_name: N, aggregation: A) -> Selfwhere
N: Into<AggregationName>,
A: Into<Aggregation>,
pub fn aggregate<N, A>(self, aggregation_name: N, aggregation: A) -> Selfwhere
N: Into<AggregationName>,
A: Into<Aggregation>,
Pushes aggregation
Trait Implementations
sourceimpl Clone for SamplerAggregation
impl Clone for SamplerAggregation
sourcefn clone(&self) -> SamplerAggregation
fn clone(&self) -> SamplerAggregation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SamplerAggregation
impl Debug for SamplerAggregation
sourceimpl From<SamplerAggregation> for Aggregation
impl From<SamplerAggregation> for Aggregation
sourcefn from(q: SamplerAggregation) -> Self
fn from(q: SamplerAggregation) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SamplerAggregation> for SamplerAggregation
impl PartialEq<SamplerAggregation> for SamplerAggregation
sourcefn eq(&self, other: &SamplerAggregation) -> bool
fn eq(&self, other: &SamplerAggregation) -> bool
sourceimpl Serialize for SamplerAggregation
impl Serialize for SamplerAggregation
impl StructuralPartialEq for SamplerAggregation
Auto Trait Implementations
impl RefUnwindSafe for SamplerAggregation
impl Send for SamplerAggregation
impl Sync for SamplerAggregation
impl Unpin for SamplerAggregation
impl UnwindSafe for SamplerAggregation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more