pub type TakePlan = Plan<Take>;Expand description
A plan that indexes one child by another.
Aliased Type§
pub struct TakePlan { /* private fields */ }Implementations§
Source§impl TakePlan
impl TakePlan
Sourcepub unsafe fn from_slots_unchecked(
dtype: DType,
row_count: u64,
slots: PlanSlots,
) -> Self
pub unsafe fn from_slots_unchecked( dtype: DType, row_count: u64, slots: PlanSlots, ) -> Self
Creates a take from potentially unbuilt slots without validation.
§Safety
slots must be [codes, values], both present; codes must have row_count rows; and
dtype must be the values dtype unioned with the codes nullability.
Sourcepub fn new(codes: PlanRef, values: PlanRef) -> Self
pub fn new(codes: PlanRef, values: PlanRef) -> Self
Creates a take of values at codes.
The row domain is that of codes, and the output dtype is that of values.
Sourcepub fn codes(&self) -> VortexResult<PlanRef>
pub fn codes(&self) -> VortexResult<PlanRef>
Returns the plan producing indices.
Sourcepub fn values(&self) -> VortexResult<PlanRef>
pub fn values(&self) -> VortexResult<PlanRef>
Returns the plan producing the values being indexed.