Skip to main content

PhysicalPlan

Enum PhysicalPlan 

Source
pub enum PhysicalPlan {
Show 29 variants CreateTable(CreateTablePlan), AlterTable(AlterTablePlan), DropTable(String), CreateIndex(CreateIndexPlan), DropIndex(DropIndexPlan), Insert(InsertPlan), Delete(DeletePlan), Update(UpdatePlan), Scan { table: String, alias: Option<String>, filter: Option<Expr>, }, IndexScan { table: String, index: String, range: ScanRange, }, GraphBfs { start_alias: String, start_expr: Expr, start_candidates: Option<Box<PhysicalPlan>>, steps: Vec<GraphStepPlan>, filter: Option<Expr>, }, VectorSearch { table: String, column: String, query_expr: Expr, k: u64, candidates: Option<Box<PhysicalPlan>>, }, HnswSearch { table: String, column: String, query_expr: Expr, k: u64, candidates: Option<Box<PhysicalPlan>>, }, Filter { input: Box<PhysicalPlan>, predicate: Expr, }, Project { input: Box<PhysicalPlan>, columns: Vec<ProjectColumn>, }, Distinct { input: Box<PhysicalPlan>, }, Join { left: Box<PhysicalPlan>, right: Box<PhysicalPlan>, condition: Expr, join_type: JoinType, left_alias: Option<String>, right_alias: Option<String>, }, Sort { input: Box<PhysicalPlan>, keys: Vec<SortKey>, }, Limit { input: Box<PhysicalPlan>, count: u64, }, MaterializeCte { name: String, input: Box<PhysicalPlan>, }, CteRef { name: String, }, Union { inputs: Vec<PhysicalPlan>, all: bool, }, Pipeline(Vec<PhysicalPlan>), SetMemoryLimit(SetMemoryLimitValue), ShowMemoryLimit, SetDiskLimit(SetDiskLimitValue), ShowDiskLimit, SetSyncConflictPolicy(String), ShowSyncConflictPolicy,
}

Variants§

§

CreateTable(CreateTablePlan)

§

AlterTable(AlterTablePlan)

§

DropTable(String)

§

CreateIndex(CreateIndexPlan)

§

DropIndex(DropIndexPlan)

§

Insert(InsertPlan)

§

Delete(DeletePlan)

§

Update(UpdatePlan)

§

Scan

Fields

§table: String
§filter: Option<Expr>
§

IndexScan

Fields

§table: String
§index: String
§

GraphBfs

Fields

§start_alias: String
§start_expr: Expr
§start_candidates: Option<Box<PhysicalPlan>>
§filter: Option<Expr>
§

VectorSearch

Fields

§table: String
§column: String
§query_expr: Expr
§candidates: Option<Box<PhysicalPlan>>
§

HnswSearch

Fields

§table: String
§column: String
§query_expr: Expr
§candidates: Option<Box<PhysicalPlan>>
§

Filter

Fields

§predicate: Expr
§

Project

Fields

§

Distinct

Fields

§

Join

Fields

§condition: Expr
§join_type: JoinType
§left_alias: Option<String>
§right_alias: Option<String>
§

Sort

Fields

§keys: Vec<SortKey>
§

Limit

Fields

§count: u64
§

MaterializeCte

Fields

§name: String
§

CteRef

Fields

§name: String
§

Union

Fields

§all: bool
§

Pipeline(Vec<PhysicalPlan>)

§

SetMemoryLimit(SetMemoryLimitValue)

§

ShowMemoryLimit

§

SetDiskLimit(SetDiskLimitValue)

§

ShowDiskLimit

§

SetSyncConflictPolicy(String)

§

ShowSyncConflictPolicy

Implementations§

Trait Implementations§

Source§

impl Clone for PhysicalPlan

Source§

fn clone(&self) -> PhysicalPlan

Returns a duplicate 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 PhysicalPlan

Source§

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

Formats the value using the given formatter. Read more

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, 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 = 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.