Struct kudu::Row
[−]
[src]
pub struct Row { /* fields omitted */ }
Methods
impl Row
[src]
TODO: unset/unset_by_name. Should zero out existing values so that equality can still be fast.
TODO: remove varlen column bytes from data
(right now it takes up 16 useless bytes) (is this
as easy as changing them to 0 width in the Value trait?).
fn new(schema: Schema) -> Row
fn set<'a, V>(&mut self, idx: usize, value: V) -> Result<&mut Row> where V: Value<'a>
fn set_by_name<'a, V>(&mut self, column: &str, value: V) -> Result<&mut Row> where V: Value<'a>
fn set_null(&mut self, idx: usize) -> Result<&mut Row>
fn set_null_by_name(&mut self, column: &str) -> Result<&mut Row>
unsafe fn set_unchecked<'a, V>(&mut self, idx: usize, value: V) -> &mut Row where V: Value<'a>
fn get<'a, V>(&'a self, idx: usize) -> Result<V> where V: Value<'a>
fn get_by_name<'a, V>(&'a self, column: &str) -> Result<Option<V>> where V: Value<'a>
fn is_null(&self, idx: usize) -> Result<bool>
fn is_null_by_name(&self, column: &str) -> Result<bool>
fn is_set(&self, idx: usize) -> Result<bool>
fn is_set_by_name(&self, column: &str) -> Result<bool>
fn schema(&self) -> &Schema
Trait Implementations
impl Clone for Row
[src]
fn clone(&self) -> Row
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Row
[src]
impl PartialEq for Row
[src]
fn eq(&self, other: &Row) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Row
[src]
impl PartialOrd for Row
[src]
Row
s can be compared based on primary key column values. If the schemas do not match or if
some of the primary key columns are not set, the ordering is not defined.
fn partial_cmp(&self, other: &Row) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more