pub struct ComponentColumnDescriptor {
pub entity_path: EntityPath,
pub archetype_name: Option<ArchetypeName>,
pub archetype_field_name: Option<String>,
pub component_name: ComponentName,
pub store_datatype: DataType,
pub is_static: bool,
pub is_indicator: bool,
pub is_tombstone: bool,
pub is_semantically_empty: bool,
}
Expand description
Describes a data/component column, such as Position3D
.
Fields§
§entity_path: EntityPath
The path of the entity.
archetype_name: Option<ArchetypeName>
Optional name of the Archetype
associated with this data.
None
if the data wasn’t logged through an archetype.
Example: rerun.archetypes.Points3D
.
archetype_field_name: Option<String>
Optional name of the field within Archetype
associated with this data.
None
if the data wasn’t logged through an archetype.
Example: positions
.
component_name: ComponentName
Semantic name associated with this data.
This is fully implied by archetype_name
and archetype_field
, but
included for semantic convenience.
Example: rerun.components.Position3D
.
store_datatype: DataType
The Arrow datatype of the stored column.
This is the log-time datatype corresponding to how this data is encoded
in a chunk. Currently this will always be an ArrowListArray
, but as
we introduce mono-type optimization, this might be a native type instead.
is_static: bool
Whether this column represents static data.
is_indicator: bool
Whether this column represents an indicator component.
is_tombstone: bool
Whether this column represents a Clear
-related components.
is_semantically_empty: bool
Whether this column contains either no data or only contains null and/or empty values ([]
).
Implementations§
source§impl ComponentColumnDescriptor
impl ComponentColumnDescriptor
pub fn component_path(&self) -> ComponentPath
pub fn matches(&self, entity_path: &EntityPath, component_name: &str) -> bool
pub fn returned_datatype(&self) -> DataType
pub fn to_arrow_field(&self) -> Field
Trait Implementations§
source§impl Clone for ComponentColumnDescriptor
impl Clone for ComponentColumnDescriptor
source§fn clone(&self) -> ComponentColumnDescriptor
fn clone(&self) -> ComponentColumnDescriptor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentColumnDescriptor
impl Debug for ComponentColumnDescriptor
source§impl Display for ComponentColumnDescriptor
impl Display for ComponentColumnDescriptor
source§impl From<ComponentColumnDescriptor> for ComponentColumnSelector
impl From<ComponentColumnDescriptor> for ComponentColumnSelector
source§fn from(desc: ComponentColumnDescriptor) -> ComponentColumnSelector
fn from(desc: ComponentColumnDescriptor) -> ComponentColumnSelector
source§impl Hash for ComponentColumnDescriptor
impl Hash for ComponentColumnDescriptor
source§impl Ord for ComponentColumnDescriptor
impl Ord for ComponentColumnDescriptor
source§fn cmp(&self, other: &ComponentColumnDescriptor) -> Ordering
fn cmp(&self, other: &ComponentColumnDescriptor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ComponentColumnDescriptor
impl PartialEq for ComponentColumnDescriptor
source§fn eq(&self, other: &ComponentColumnDescriptor) -> bool
fn eq(&self, other: &ComponentColumnDescriptor) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ComponentColumnDescriptor
impl PartialOrd for ComponentColumnDescriptor
source§fn partial_cmp(&self, other: &ComponentColumnDescriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentColumnDescriptor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ComponentColumnDescriptor
impl StructuralPartialEq for ComponentColumnDescriptor
Auto Trait Implementations§
impl Freeze for ComponentColumnDescriptor
impl RefUnwindSafe for ComponentColumnDescriptor
impl Send for ComponentColumnDescriptor
impl Sync for ComponentColumnDescriptor
impl Unpin for ComponentColumnDescriptor
impl UnwindSafe for ComponentColumnDescriptor
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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