risingwave_pb::expr::expr_node

Enum RexNode

source
pub enum RexNode {
    InputRef(u32),
    Constant(Datum),
    FuncCall(FunctionCall),
    Udf(UserDefinedFunction),
    Now(NowRexNode),
}

Variants§

§

InputRef(u32)

§

Constant(Datum)

§

FuncCall(FunctionCall)

§

Udf(UserDefinedFunction)

§

Now(NowRexNode)

Implementations§

source§

impl RexNode

source

pub fn encode(&self, buf: &mut impl BufMut)

Encodes the message to a buffer.

source

pub fn merge( field: &mut Option<RexNode>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>

Decodes an instance of the message from a buffer, and merges it into self.

source

pub fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.

source§

impl RexNode

source

pub fn is_input_ref(&self) -> bool

Returns true if this is a RexNode::InputRef, otherwise false

source

pub fn as_input_ref_mut(&mut self) -> Option<&mut u32>

Optionally returns mutable references to the inner fields if this is a RexNode::InputRef, otherwise None

source

pub fn as_input_ref(&self) -> Option<&u32>

Optionally returns references to the inner fields if this is a RexNode::InputRef, otherwise None

source

pub fn into_input_ref(self) -> Result<u32, Self>

Returns the inner fields if this is a RexNode::InputRef, otherwise returns back the enum in the Err case of the result

source

pub fn is_constant(&self) -> bool

Returns true if this is a RexNode::Constant, otherwise false

source

pub fn as_constant_mut(&mut self) -> Option<&mut Datum>

Optionally returns mutable references to the inner fields if this is a RexNode::Constant, otherwise None

source

pub fn as_constant(&self) -> Option<&Datum>

Optionally returns references to the inner fields if this is a RexNode::Constant, otherwise None

source

pub fn into_constant(self) -> Result<Datum, Self>

Returns the inner fields if this is a RexNode::Constant, otherwise returns back the enum in the Err case of the result

source

pub fn is_func_call(&self) -> bool

Returns true if this is a RexNode::FuncCall, otherwise false

source

pub fn as_func_call_mut(&mut self) -> Option<&mut FunctionCall>

Optionally returns mutable references to the inner fields if this is a RexNode::FuncCall, otherwise None

source

pub fn as_func_call(&self) -> Option<&FunctionCall>

Optionally returns references to the inner fields if this is a RexNode::FuncCall, otherwise None

source

pub fn into_func_call(self) -> Result<FunctionCall, Self>

Returns the inner fields if this is a RexNode::FuncCall, otherwise returns back the enum in the Err case of the result

source

pub fn is_udf(&self) -> bool

Returns true if this is a RexNode::Udf, otherwise false

source

pub fn as_udf_mut(&mut self) -> Option<&mut UserDefinedFunction>

Optionally returns mutable references to the inner fields if this is a RexNode::Udf, otherwise None

source

pub fn as_udf(&self) -> Option<&UserDefinedFunction>

Optionally returns references to the inner fields if this is a RexNode::Udf, otherwise None

source

pub fn into_udf(self) -> Result<UserDefinedFunction, Self>

Returns the inner fields if this is a RexNode::Udf, otherwise returns back the enum in the Err case of the result

source

pub fn is_now(&self) -> bool

Returns true if this is a RexNode::Now, otherwise false

source

pub fn as_now_mut(&mut self) -> Option<&mut NowRexNode>

Optionally returns mutable references to the inner fields if this is a RexNode::Now, otherwise None

source

pub fn as_now(&self) -> Option<&NowRexNode>

Optionally returns references to the inner fields if this is a RexNode::Now, otherwise None

source

pub fn into_now(self) -> Result<NowRexNode, Self>

Returns the inner fields if this is a RexNode::Now, otherwise returns back the enum in the Err case of the result

Trait Implementations§

source§

impl Clone for RexNode

source§

fn clone(&self) -> RexNode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RexNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for RexNode

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for RexNode

source§

fn eq(&self, other: &RexNode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for RexNode

source§

impl StructuralPartialEq for RexNode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more