pub struct LazyDType { /* private fields */ }Implementations§
Source§impl LazyDType
impl LazyDType
Sourcepub unsafe fn from_schema_bytes(dtype_bytes: Bytes) -> Self
pub unsafe fn from_schema_bytes(dtype_bytes: Bytes) -> 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
pub fn unknown() -> Self
Sourcepub fn project(&self, fields: &[Field]) -> VortexResult<Arc<Self>>
pub fn project(&self, fields: &[Field]) -> VortexResult<Arc<Self>>
Restrict the underlying dtype to selected fields
Sourcepub fn field(&self, field: &Field) -> VortexResult<Arc<Self>>
pub fn field(&self, field: &Field) -> VortexResult<Arc<Self>>
Extract single field out of this dtype
Sourcepub fn names(&self) -> VortexResult<FieldNames>
pub fn names(&self) -> VortexResult<FieldNames>
Extract field names from the underlying dtype if there are any
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 LazyDType
impl RefUnwindSafe for LazyDType
impl Send for LazyDType
impl Sync for LazyDType
impl Unpin for LazyDType
impl UnwindSafe for LazyDType
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