pub struct StrColumn<'a> {
keys: &'a UInt32Array,
values: &'a StringArray,
}Expand description
The str column of an attribute table, read through its dictionary.
Five call sites — the block index, the zone index, the filter, the JSON
encoder and the service.name scan — all want the same thing: the text of
row n. The dictionary makes that two indirections instead of one, so it is
resolved here rather than five times, and the column position lives in one
place with it.
value on a null row reads whatever key byte is under it, exactly as
StringArray::value did before. Every caller reaches it through
type == AttrType::Str, which is only written alongside a value.
Fields§
§keys: &'a UInt32Array§values: &'a StringArrayImplementations§
Auto Trait Implementations§
impl<'a> Freeze for StrColumn<'a>
impl<'a> RefUnwindSafe for StrColumn<'a>
impl<'a> Send for StrColumn<'a>
impl<'a> Sync for StrColumn<'a>
impl<'a> Unpin for StrColumn<'a>
impl<'a> UnsafeUnpin for StrColumn<'a>
impl<'a> UnwindSafe for StrColumn<'a>
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].