pub struct TableSample {
pub this: Option<Box<Expression>>,
pub sample: Option<Box<Sample>>,
pub expressions: Vec<Expression>,
pub method: Option<String>,
pub bucket_numerator: Option<Box<Expression>>,
pub bucket_denominator: Option<Box<Expression>>,
pub bucket_field: Option<Box<Expression>>,
pub percent: Option<Box<Expression>>,
pub rows: Option<Box<Expression>>,
pub size: Option<i64>,
pub seed: Option<Box<Expression>>,
}Expand description
TableSample - wraps an expression with a TABLESAMPLE clause Used when TABLESAMPLE follows a non-Table expression (subquery, function, etc.)
Fields§
§this: Option<Box<Expression>>The expression being sampled (subquery, function, etc.)
sample: Option<Box<Sample>>The sample specification
expressions: Vec<Expression>§method: Option<String>§bucket_numerator: Option<Box<Expression>>§bucket_denominator: Option<Box<Expression>>§bucket_field: Option<Box<Expression>>§percent: Option<Box<Expression>>§rows: Option<Box<Expression>>§size: Option<i64>§seed: Option<Box<Expression>>Trait Implementations§
Source§impl Clone for TableSample
impl Clone for TableSample
Source§fn clone(&self) -> TableSample
fn clone(&self) -> TableSample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableSample
impl Debug for TableSample
Source§impl<'de> Deserialize<'de> for TableSample
impl<'de> Deserialize<'de> for TableSample
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TableSample
impl PartialEq for TableSample
Source§impl Serialize for TableSample
impl Serialize for TableSample
impl StructuralPartialEq for TableSample
Auto Trait Implementations§
impl Freeze for TableSample
impl RefUnwindSafe for TableSample
impl Send for TableSample
impl Sync for TableSample
impl Unpin for TableSample
impl UnwindSafe for TableSample
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