pub struct EraseSpec { /* private fields */ }Expand description
An erase operation: rows out of one table, in place.
The rows to delete are named by the path, as a row range —
//tmp/log[#10:#100] — and a path with no range erases every row while
leaving the table and its schema where they are.
use ytsaurus_client::EraseSpec;
let all = EraseSpec::new("//tmp/log");
let first_ten = EraseSpec::new("//tmp/log[#0:#10]");Implementations§
Source§impl EraseSpec
impl EraseSpec
Sourcepub fn new(table: impl Into<String>) -> Self
pub fn new(table: impl Into<String>) -> Self
Erases the rows table names.
Ranges are written into the path itself, as text.
TablePath now models typed ranges for the table
read commands, but an erase is its own case — the range here selects
what an operation deletes, the cluster honours it, and adopting the
typed form for specs is a separate decision this constructor does not
make.
Sourcepub fn with_combine_chunks(self, combine: bool) -> Self
pub fn with_combine_chunks(self, combine: bool) -> Self
Asks the cluster to combine what is left into larger chunks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EraseSpec
impl RefUnwindSafe for EraseSpec
impl Send for EraseSpec
impl Sync for EraseSpec
impl Unpin for EraseSpec
impl UnsafeUnpin for EraseSpec
impl UnwindSafe for EraseSpec
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