pub struct IntermediateAggregationResults { /* private fields */ }
Expand description
Contains the intermediate aggregation result, which is optimized to be merged with other intermediate results.
Notice: This struct should not be de/serialized via JSON format.
Implementations§
source§impl IntermediateAggregationResults
impl IntermediateAggregationResults
sourcepub fn push(
&mut self,
key: String,
value: IntermediateAggregationResult
) -> Result<()>
pub fn push( &mut self, key: String, value: IntermediateAggregationResult ) -> Result<()>
Add a result
sourcepub fn into_final_result(
self,
req: Aggregations,
limits: &AggregationLimits
) -> Result<AggregationResults>
pub fn into_final_result( self, req: Aggregations, limits: &AggregationLimits ) -> Result<AggregationResults>
Convert intermediate result and its aggregation request to the final result.
sourcepub fn merge_fruits(
&mut self,
other: IntermediateAggregationResults
) -> Result<()>
pub fn merge_fruits( &mut self, other: IntermediateAggregationResults ) -> Result<()>
Merge another intermediate aggregation result into this result.
The order of the values need to be the same on both results. This is ensured when the same
(key values) are present on the underlying VecWithNames
struct.
Trait Implementations§
source§impl Clone for IntermediateAggregationResults
impl Clone for IntermediateAggregationResults
source§fn clone(&self) -> IntermediateAggregationResults
fn clone(&self) -> IntermediateAggregationResults
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for IntermediateAggregationResults
impl Default for IntermediateAggregationResults
source§fn default() -> IntermediateAggregationResults
fn default() -> IntermediateAggregationResults
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IntermediateAggregationResults
impl<'de> Deserialize<'de> for IntermediateAggregationResults
source§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
source§impl PartialEq for IntermediateAggregationResults
impl PartialEq for IntermediateAggregationResults
source§fn eq(&self, other: &IntermediateAggregationResults) -> bool
fn eq(&self, other: &IntermediateAggregationResults) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IntermediateAggregationResults
Auto Trait Implementations§
impl Freeze for IntermediateAggregationResults
impl RefUnwindSafe for IntermediateAggregationResults
impl Send for IntermediateAggregationResults
impl Sync for IntermediateAggregationResults
impl Unpin for IntermediateAggregationResults
impl UnwindSafe for IntermediateAggregationResults
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.