pub struct PerRowSamplingPlan { /* private fields */ }Expand description
Per-row sort-free sampling plan.
Implementations§
Source§impl PerRowSamplingPlan
impl PerRowSamplingPlan
Sourcepub fn select(
_stream: &Stream,
desc: &PerRowSamplingDescriptor,
_pref: PlanPreference,
) -> Result<Self>
pub fn select( _stream: &Stream, desc: &PerRowSamplingDescriptor, _pref: PlanPreference, ) -> Result<Self>
Validate the descriptor.
Sourcepub fn can_implement(&self, args: &PerRowSamplingArgs<'_>) -> Result<()>
pub fn can_implement(&self, args: &PerRowSamplingArgs<'_>) -> Result<()>
Validate args (shapes + presence of the required array).
Sourcepub fn workspace_size(&self) -> usize
pub fn workspace_size(&self) -> usize
Workspace bytes — always 0.
Sourcepub fn precision_guarantee(&self) -> PrecisionGuarantee
pub fn precision_guarantee(&self) -> PrecisionGuarantee
Numerical guarantees.
Auto Trait Implementations§
impl Freeze for PerRowSamplingPlan
impl RefUnwindSafe for PerRowSamplingPlan
impl Send for PerRowSamplingPlan
impl Sync for PerRowSamplingPlan
impl Unpin for PerRowSamplingPlan
impl UnsafeUnpin for PerRowSamplingPlan
impl UnwindSafe for PerRowSamplingPlan
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