Skip to main content

Take

Struct Take 

Source
pub struct Take { /* private fields */ }
Expand description

Implements limit: passes the first limit nodes of its input and keeps a bound, the last accepted row, to decide on pushes (take.ts). Counts globally or per value of a partition key.

Implementations§

Source§

impl Take

Source

pub fn new( input: Rc<dyn Input>, limit: usize, partition_key: Option<Vec<String>>, ) -> Result<Rc<Self>, PipelineError>

Source

pub fn set_take_gate(&self, gate: &Rc<TakeGate>)

Trait Implementations§

Source§

impl Input for Take

Source§

fn set_output(&self, output: Weak<dyn Output>)

Source§

fn fetch(&self, req: &FetchRequest) -> NodeStream

Source§

impl InputBase for Take

Source§

impl Output for Take

Source§

fn push(&self, change: Change, _pusher: &dyn InputBase)

Source§

fn reconcile(&self, _pusher: &dyn InputBase)

Phase two. Sinks can ignore it; operators must forward it.
Source§

fn has_reconcile(&self) -> bool

Whether the output has a phase two: false for a sink whose JS counterpart has no reconcile, such as a view, which pushes timed for the inspector skip (MeasurePushOperator).
Source§

impl TakeBoundProvider for Take

Source§

fn get_bound(&self, constraint: Option<&Constraint>) -> Option<Row>

Auto Trait Implementations§

§

impl !Freeze for Take

§

impl !RefUnwindSafe for Take

§

impl !Send for Take

§

impl !Sync for Take

§

impl !UnwindSafe for Take

§

impl Forget for Take

§

impl Move for Take

§

impl Unpin for Take

§

impl UnsafeUnpin for Take

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Operator for T
where T: Input + Output,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.