pub enum WriteTimeTtlFunction {
WriteTime,
Ttl,
}Expand description
The two metadata-retrieval functions Cassandra exposes in SELECT.
These are first-class variants rather than being folded into FunctionCall
so the executor can dispatch on them without string-matching function names.
§Executor TODO (#692)
Evaluation is not yet wired: the executor must thread writetime / ttl
cell-level metadata from SSTableReader up through the row-scanning loop
and then return Value::BigInt(micros) / Value::Int(seconds) respectively.
Until that work lands, selecting these columns returns Value::Null.
Variants§
WriteTime
WRITETIME(col) — returns the write timestamp in microseconds (bigint)
Ttl
TTL(col) — returns the remaining TTL in seconds (int), or NULL if no TTL
Trait Implementations§
Source§impl Clone for WriteTimeTtlFunction
impl Clone for WriteTimeTtlFunction
Source§fn clone(&self) -> WriteTimeTtlFunction
fn clone(&self) -> WriteTimeTtlFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriteTimeTtlFunction
impl Debug for WriteTimeTtlFunction
Source§impl<'de> Deserialize<'de> for WriteTimeTtlFunction
impl<'de> Deserialize<'de> for WriteTimeTtlFunction
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 WriteTimeTtlFunction
impl PartialEq for WriteTimeTtlFunction
Source§fn eq(&self, other: &WriteTimeTtlFunction) -> bool
fn eq(&self, other: &WriteTimeTtlFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WriteTimeTtlFunction
impl Serialize for WriteTimeTtlFunction
impl StructuralPartialEq for WriteTimeTtlFunction
Auto Trait Implementations§
impl Freeze for WriteTimeTtlFunction
impl RefUnwindSafe for WriteTimeTtlFunction
impl Send for WriteTimeTtlFunction
impl Sync for WriteTimeTtlFunction
impl Unpin for WriteTimeTtlFunction
impl UnsafeUnpin for WriteTimeTtlFunction
impl UnwindSafe for WriteTimeTtlFunction
Blanket Implementations§
impl<T> Allocation for T
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