Skip to main content

Rel

Enum Rel 

Source
pub enum Rel {
    Scan {
        source: SourceName,
        table: TableName,
        bind: BindingName,
    },
    Values {
        bind: BindingName,
        row_type: RowType,
        rows: Vec<Row>,
    },
    Project {
        input: Box<Rel>,
        bind: BindingName,
        fields: Vec<NamedScalar>,
    },
    Filter {
        input: Box<Rel>,
        predicate: Scalar,
    },
    Join {
        left: Box<Rel>,
        right: Box<Rel>,
        kind: JoinKind,
        on: Scalar,
    },
    Group {
        input: Box<Rel>,
        bind: BindingName,
        keys: Vec<NamedScalar>,
        aggregates: Vec<NamedAggregate>,
        having: Option<Scalar>,
    },
    Set {
        op: SetOp,
        inputs: Vec<Rel>,
    },
    Distinct(Box<Rel>),
    Order {
        input: Box<Rel>,
        keys: Vec<OrderKey>,
    },
    Limit {
        input: Box<Rel>,
        count: Option<u64>,
        offset: u64,
    },
}
Expand description

Complete logical relation algebra.

Variants§

§

Scan

Catalog table scan.

Fields

§source: SourceName

Provider source.

§table: TableName

Schema table.

§bind: BindingName

Introduced binding.

§

Values

Bounded literal rows.

Fields

§bind: BindingName

Introduced binding.

§row_type: RowType

Declared row type.

§rows: Vec<Row>

Rows.

§

Project

Projection.

Fields

§input: Box<Rel>

Input.

§bind: BindingName

Introduced output binding.

§fields: Vec<NamedScalar>

Fields.

§

Filter

Predicate filter.

Fields

§input: Box<Rel>

Input.

§predicate: Scalar

Boolean predicate.

§

Join

Binary join.

Fields

§left: Box<Rel>

Left relation.

§right: Box<Rel>

Right relation.

§kind: JoinKind

Kind.

§on: Scalar

Boolean condition; ignored only for cross joins.

§

Group

Grouped projection.

Fields

§input: Box<Rel>

Input.

§bind: BindingName

Introduced output binding.

§keys: Vec<NamedScalar>

Group keys.

§aggregates: Vec<NamedAggregate>

Aggregates.

§having: Option<Scalar>

Post-aggregate predicate.

§

Set

Compatible set operation.

Fields

§op: SetOp

Operation.

§inputs: Vec<Rel>

Two or more inputs.

§

Distinct(Box<Rel>)

Duplicate elimination.

§

Order

Stable ordering.

Fields

§input: Box<Rel>

Input.

§keys: Vec<OrderKey>

Ordering keys.

§

Limit

Bounded result window.

Fields

§input: Box<Rel>

Input.

§count: Option<u64>

Optional maximum rows.

§offset: u64

Rows skipped.

Trait Implementations§

Source§

impl Clone for Rel

Source§

fn clone(&self) -> Rel

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Rel

Source§

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

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

impl Eq for Rel

Source§

impl PartialEq for Rel

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Rel

Auto Trait Implementations§

§

impl Freeze for Rel

§

impl RefUnwindSafe for Rel

§

impl Send for Rel

§

impl Sync for Rel

§

impl Unpin for Rel

§

impl UnsafeUnpin for Rel

§

impl UnwindSafe for Rel

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, dest: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.