Struct re_viewer::external::re_entity_db::external::re_query::LatestAtResults
source · pub struct LatestAtResults {
pub entity_path: EntityPath,
pub query: LatestAtQuery,
pub compound_index: (TimeInt, RowId),
pub components: HashMap<ComponentName, UnitChunkShared, BuildHasherDefault<NoHashHasher<ComponentName>>>,
}
Expand description
Results for a latest-at query.
Use LatestAtResults::get
and/or LatestAtResults::get_required
in order to access
the results for each individual component.
Fields§
§entity_path: EntityPath
The associated EntityPath
.
query: LatestAtQuery
The query that yielded these results.
compound_index: (TimeInt, RowId)
The compound index of this query result.
A latest-at query is a compound operation that gathers data from many different rows. The index of that compound result corresponds to the index of most the recent row in all the sub-results, as defined by time and row-id order.
components: HashMap<ComponentName, UnitChunkShared, BuildHasherDefault<NoHashHasher<ComponentName>>>
Results for each individual component.
Each UnitChunkShared
MUST always contain the corresponding component.
Implementations§
source§impl LatestAtResults
impl LatestAtResults
pub fn empty(entity_path: EntityPath, query: LatestAtQuery) -> LatestAtResults
source§impl LatestAtResults
impl LatestAtResults
pub fn contains(&self, component_name: &ComponentName) -> bool
sourcepub fn get(&self, component_name: &ComponentName) -> Option<&UnitChunkShared>
pub fn get(&self, component_name: &ComponentName) -> Option<&UnitChunkShared>
Returns the UnitChunkShared
for the specified Component
.
sourcepub fn get_required(
&self,
component_name: &ComponentName
) -> Result<&UnitChunkShared, QueryError>
pub fn get_required( &self, component_name: &ComponentName ) -> Result<&UnitChunkShared, QueryError>
Returns the UnitChunkShared
for the specified Component
.
Returns an error if the component is not present.
source§impl LatestAtResults
impl LatestAtResults
sourcepub fn component_row_id(&self, component_name: &ComponentName) -> Option<RowId>
pub fn component_row_id(&self, component_name: &ComponentName) -> Option<RowId>
Returns the RowId
for the specified component.
sourcepub fn component_batch_raw(
&self,
component_name: &ComponentName
) -> Option<Box<dyn Array>>
pub fn component_batch_raw( &self, component_name: &ComponentName ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component.
sourcepub fn component_batch_with_log_level<C>(
&self,
log_level: Level
) -> Option<Vec<C>>where
C: Component,
pub fn component_batch_with_log_level<C>(
&self,
log_level: Level
) -> Option<Vec<C>>where
C: Component,
Returns the deserialized data for the specified component.
Logs at the specified log_level
if the data cannot be deserialized.
sourcepub fn component_batch<C>(&self) -> Option<Vec<C>>where
C: Component,
pub fn component_batch<C>(&self) -> Option<Vec<C>>where
C: Component,
Returns the deserialized data for the specified component.
Logs an error if the data cannot be deserialized.
sourcepub fn component_batch_quiet<C>(&self) -> Option<Vec<C>>where
C: Component,
pub fn component_batch_quiet<C>(&self) -> Option<Vec<C>>where
C: Component,
Returns the deserialized data for the specified component.
sourcepub fn component_instance_raw_with_log_level(
&self,
log_level: Level,
component_name: &ComponentName,
instance_index: usize
) -> Option<Box<dyn Array>>
pub fn component_instance_raw_with_log_level( &self, log_level: Level, component_name: &ComponentName, instance_index: usize ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component at the given instance index.
Logs at the specified log_level
if the instance index is out of bounds.
sourcepub fn component_instance_raw(
&self,
component_name: &ComponentName,
instance_index: usize
) -> Option<Box<dyn Array>>
pub fn component_instance_raw( &self, component_name: &ComponentName, instance_index: usize ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component at the given instance index.
Logs an error if the instance index is out of bounds.
sourcepub fn component_instance_raw_quiet(
&self,
component_name: &ComponentName,
instance_index: usize
) -> Option<Box<dyn Array>>
pub fn component_instance_raw_quiet( &self, component_name: &ComponentName, instance_index: usize ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component at the given instance index.
sourcepub fn component_instance_with_log_level<C>(
&self,
log_level: Level,
instance_index: usize
) -> Option<C>where
C: Component,
pub fn component_instance_with_log_level<C>(
&self,
log_level: Level,
instance_index: usize
) -> Option<C>where
C: Component,
Returns the deserialized data for the specified component at the given instance index.
Logs at the specified log_level
if the data cannot be deserialized, or if the instance index
is out of bounds.
sourcepub fn component_instance<C>(&self, instance_index: usize) -> Option<C>where
C: Component,
pub fn component_instance<C>(&self, instance_index: usize) -> Option<C>where
C: Component,
Returns the deserialized data for the specified component at the given instance index.
Logs an error if the data cannot be deserialized, or if the instance index is out of bounds.
sourcepub fn component_instance_quiet<C>(&self, instance_index: usize) -> Option<C>where
C: Component,
pub fn component_instance_quiet<C>(&self, instance_index: usize) -> Option<C>where
C: Component,
Returns the deserialized data for the specified component at the given instance index.
Returns an error if the data cannot be deserialized, or if the instance index is out of bounds.
sourcepub fn component_mono_raw_with_log_level(
&self,
log_level: Level,
component_name: &ComponentName
) -> Option<Box<dyn Array>>
pub fn component_mono_raw_with_log_level( &self, log_level: Level, component_name: &ComponentName ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component, assuming a mono-batch.
Logs at the specified log_level
if the underlying batch is not of unit length.
sourcepub fn component_mono_raw(
&self,
component_name: &ComponentName
) -> Option<Box<dyn Array>>
pub fn component_mono_raw( &self, component_name: &ComponentName ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component, assuming a mono-batch.
Returns an error if the underlying batch is not of unit length.
sourcepub fn component_mono_raw_quiet(
&self,
component_name: &ComponentName
) -> Option<Box<dyn Array>>
pub fn component_mono_raw_quiet( &self, component_name: &ComponentName ) -> Option<Box<dyn Array>>
Returns the raw data for the specified component, assuming a mono-batch.
Returns an error if the underlying batch is not of unit length.
sourcepub fn component_mono_with_log_level<C>(&self, log_level: Level) -> Option<C>where
C: Component,
pub fn component_mono_with_log_level<C>(&self, log_level: Level) -> Option<C>where
C: Component,
Returns the deserialized data for the specified component, assuming a mono-batch.
Logs at the specified log_level
if the data cannot be deserialized, or if the underlying batch
is not of unit length.
sourcepub fn component_mono<C>(&self) -> Option<C>where
C: Component,
pub fn component_mono<C>(&self) -> Option<C>where
C: Component,
Returns the deserialized data for the specified component, assuming a mono-batch.
Returns an error if the data cannot be deserialized, or if the underlying batch is not of unit length.
sourcepub fn component_mono_quiet<C>(&self) -> Option<C>where
C: Component,
pub fn component_mono_quiet<C>(&self) -> Option<C>where
C: Component,
Returns the deserialized data for the specified component, assuming a mono-batch.
Returns an error if the data cannot be deserialized, or if the underlying batch is not of unit length.
Trait Implementations§
source§impl Debug for LatestAtResults
impl Debug for LatestAtResults
source§impl RangeResultsExt for LatestAtResults
impl RangeResultsExt for LatestAtResults
source§fn get_required_chunks(
&self,
component_name: &ComponentName
) -> Option<Cow<'_, [Chunk]>>
fn get_required_chunks( &self, component_name: &ComponentName ) -> Option<Cow<'_, [Chunk]>>
source§fn get_optional_chunks(
&self,
component_name: &ComponentName
) -> Cow<'_, [Chunk]>
fn get_optional_chunks( &self, component_name: &ComponentName ) -> Cow<'_, [Chunk]>
source§fn iter_as(
&self,
timeline: Timeline,
component_name: ComponentName
) -> HybridResultsChunkIter<'_>
fn iter_as( &self, timeline: Timeline, component_name: ComponentName ) -> HybridResultsChunkIter<'_>
(timeline, component)
pair. Read moreAuto Trait Implementations§
impl Freeze for LatestAtResults
impl !RefUnwindSafe for LatestAtResults
impl Send for LatestAtResults
impl Sync for LatestAtResults
impl Unpin for LatestAtResults
impl !UnwindSafe for LatestAtResults
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request