pub struct SortSpec { /* private fields */ }Expand description
A sort operation.
There is no user job: the cluster does the sorting. Its result is a sorted
table, which is what ReduceSpec needs.
use ytsaurus_client::SortSpec;
let spec = SortSpec::new(["//tmp/unsorted"], "//tmp/sorted", ["word"]);Implementations§
Source§impl SortSpec
impl SortSpec
Sourcepub fn new<I, K>(inputs: I, output: impl Into<String>, sort_by: K) -> Self
pub fn new<I, K>(inputs: I, output: impl Into<String>, sort_by: K) -> Self
Sorts inputs into output, ordered by sort_by.
Note the single output: sort writes one table, however many it reads.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SortSpec
impl RefUnwindSafe for SortSpec
impl Send for SortSpec
impl Sync for SortSpec
impl Unpin for SortSpec
impl UnsafeUnpin for SortSpec
impl UnwindSafe for SortSpec
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