pub struct LazilyDeserializedDType { /* private fields */ }Implementations§
Source§impl LazilyDeserializedDType
impl LazilyDeserializedDType
Sourcepub unsafe fn from_schema_bytes(
schema_bytes: Bytes,
projection: Projection,
) -> Self
pub unsafe fn from_schema_bytes( schema_bytes: Bytes, projection: Projection, ) -> Self
Create a LazilyDeserializedDType from a flatbuffer schema bytes i.e., these bytes need to be deserializable as message::Schema
§Safety
This function is unsafe because it trusts the caller to pass in a valid flatbuffer representing a message::Schema.
pub fn from_dtype(dtype: DType) -> Self
Sourcepub fn project(&self, projection: &[Field]) -> VortexResult<Arc<Self>>
pub fn project(&self, projection: &[Field]) -> VortexResult<Arc<Self>>
Restrict the underlying dtype to selected fields
Sourcepub fn value(&self) -> VortexResult<&DType>
pub fn value(&self) -> VortexResult<&DType>
Get vortex dtype out of serialized bytes
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LazilyDeserializedDType
impl RefUnwindSafe for LazilyDeserializedDType
impl Send for LazilyDeserializedDType
impl Sync for LazilyDeserializedDType
impl Unpin for LazilyDeserializedDType
impl UnwindSafe for LazilyDeserializedDType
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> 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>
Converts
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>
Converts
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 more