pub struct FieldCursorStream<T: CursorArray> {
sort: PhysicalSortExpr,
streams: FusedStreams,
reservation: MemoryReservation,
phantom: PhantomData<fn(T) -> T>,
}Expand description
Specialized stream for sorts on single primitive columns
Fields§
§sort: PhysicalSortExprThe physical expressions to sort by
streams: FusedStreamsInput streams
reservation: MemoryReservationCreate new reservations for each array
phantom: PhantomData<fn(T) -> T>Implementations§
Source§impl<T: CursorArray> FieldCursorStream<T>
impl<T: CursorArray> FieldCursorStream<T>
pub fn new( sort: PhysicalSortExpr, streams: Vec<SendableRecordBatchStream>, reservation: MemoryReservation, ) -> Self
fn convert_batch( &mut self, batch: &RecordBatch, ) -> Result<ArrayValues<T::Values>>
Trait Implementations§
Source§impl<T: CursorArray> Debug for FieldCursorStream<T>
impl<T: CursorArray> Debug for FieldCursorStream<T>
Source§impl<T: CursorArray> PartitionedStream for FieldCursorStream<T>
impl<T: CursorArray> PartitionedStream for FieldCursorStream<T>
type Output = Result<(ArrayValues<<T as CursorArray>::Values>, RecordBatch), DataFusionError>
Source§fn partitions(&self) -> usize
fn partitions(&self) -> usize
Returns the number of partitions
fn poll_next( &mut self, cx: &mut Context<'_>, stream_idx: usize, ) -> Poll<Option<Self::Output>>
Auto Trait Implementations§
impl<T> Freeze for FieldCursorStream<T>
impl<T> !RefUnwindSafe for FieldCursorStream<T>
impl<T> Send for FieldCursorStream<T>
impl<T> !Sync for FieldCursorStream<T>
impl<T> Unpin for FieldCursorStream<T>
impl<T> !UnwindSafe for FieldCursorStream<T>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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