GraphTraversal

Struct GraphTraversal 

Source
pub struct GraphTraversal<S, E: FromGValue, T: Terminator<E>> { /* private fields */ }

Implementations§

Source§

impl<S, E: FromGValue, T: Terminator<E>> GraphTraversal<S, E, T>

Source

pub fn new(terminator: T, builder: TraversalBuilder) -> GraphTraversal<S, E, T>

Source

pub fn does_write(&self) -> bool

Source

pub fn bytecode(&self) -> &Bytecode

Source

pub fn has_label<L>(self, labels: L) -> Self
where L: Into<Labels>,

Source

pub fn add_v<A>(self, label: A) -> GraphTraversal<Vertex, Vertex, T>
where A: Into<Labels>, T: Terminator<Vertex>,

Source

pub fn property<A>(self, key: &str, value: A) -> Self
where A: Into<GValue>,

Source

pub fn property_with_cardinality<A>( self, cardinality: Cardinality, key: &str, value: A, ) -> Self
where A: Into<GValue>,

Source

pub fn property_many<A>(self, values: Vec<(&str, A)>) -> Self
where A: Into<GValue>,

Source

pub fn property_many_with_cardinality<A>( self, values: Vec<(Cardinality, String, A)>, ) -> Self
where A: Into<GValue>,

Source

pub fn has<A>(self, step: A) -> Self
where A: Into<HasStep>,

Source

pub fn has_many<A>(self, steps: Vec<A>) -> Self
where A: Into<HasStep>,

Source

pub fn has_not<A>(self, key: A) -> Self
where A: Into<String>,

Source

pub fn has_key<A>(self, key: A) -> Self
where A: Into<String>,

Source

pub fn as_<A>(self, alias: A) -> Self
where A: Into<String>,

Source

pub fn with_side_effect<A>(self, step: (&'static str, A)) -> Self
where A: Into<GValue> + FromGValue,

Source

pub fn add_e<A>(self, label: A) -> GraphTraversal<S, Edge, T>
where A: Into<String>, T: Terminator<Edge>,

Source

pub fn out<A>(self, labels: A) -> GraphTraversal<S, Vertex, T>
where A: Into<Labels>, T: Terminator<Vertex>,

Source

pub fn out_e<A>(self, labels: A) -> GraphTraversal<S, Edge, T>
where A: Into<Labels>, T: Terminator<Edge>,

Source

pub fn out_v(self) -> GraphTraversal<S, Vertex, T>
where T: Terminator<Vertex>,

Source

pub fn in_<A>(self, labels: A) -> GraphTraversal<S, Vertex, T>
where A: Into<Labels>, T: Terminator<Vertex>,

Source

pub fn in_e<A>(self, labels: A) -> GraphTraversal<S, Edge, T>
where A: Into<Labels>, T: Terminator<Edge>,

Source

pub fn in_v(self) -> GraphTraversal<S, Vertex, T>
where T: Terminator<Vertex>,

Source

pub fn both<A>(self, labels: A) -> GraphTraversal<S, Vertex, T>
where A: Into<Labels>, T: Terminator<Vertex>,

Source

pub fn both_e<A>(self, labels: A) -> GraphTraversal<S, Edge, T>
where A: Into<Labels>, T: Terminator<Edge>,

Source

pub fn other(self) -> GraphTraversal<S, Vertex, T>
where T: Terminator<Vertex>,

Source

pub fn other_v(self) -> GraphTraversal<S, Vertex, T>
where T: Terminator<Vertex>,

Source

pub fn label(self) -> GraphTraversal<S, String, T>
where T: Terminator<String>,

Source

pub fn exec(&self) -> T::Executor

Source

pub fn from<A>(self, target: A) -> Self
where A: Into<FromStep>,

Source

pub fn to<A>(self, target: A) -> Self
where A: Into<ToStep>,

Source

pub fn properties<L>(self, labels: L) -> GraphTraversal<S, GProperty, T>

Source

pub fn property_map<L>(self, labels: L) -> GraphTraversal<S, Map, T>
where L: Into<Labels>, T: Terminator<Map>,

Source

pub fn values<L>(self, labels: L) -> GraphTraversal<S, GValue, T>
where L: Into<Labels>, T: Terminator<GValue>,

Source

pub fn value_map<L>(self, labels: L) -> GraphTraversal<S, Map, T>
where L: Into<Labels>, T: Terminator<Map>,

Source

pub fn element_map<L>(self, labels: L) -> GraphTraversal<S, Map, T>
where L: Into<Labels>, T: Terminator<Map>,

Source

pub fn count(self) -> GraphTraversal<S, i64, T>
where T: Terminator<i64>,

Source

pub fn group_count(self) -> GraphTraversal<S, Map, T>
where T: Terminator<Map>,

Source

pub fn group_count_as<A>(self, key: A) -> GraphTraversal<S, E, T>
where T: Terminator<Map>, A: Into<String>,

Source

pub fn group(self) -> GraphTraversal<S, Map, T>
where T: Terminator<Map>,

Source

pub fn group_as<A>(self, key: A) -> GraphTraversal<S, E, T>
where T: Terminator<Map>, A: Into<String>,

Source

pub fn by<A>(self, step: A) -> Self
where A: Into<ByStep>,

Source

pub fn select<A>(self, step: A) -> GraphTraversal<S, GValue, T>

Source

pub fn fold(self) -> GraphTraversal<S, List, T>
where T: Terminator<List>,

Source

pub fn unfold(self) -> Self

Source

pub fn path(self) -> GraphTraversal<S, Path, T>
where T: Terminator<Path>,

Source

pub fn limit<A>(self, limit: A) -> Self
where A: Into<LimitStep>,

Source

pub fn dedup<A>(self, dedup: A) -> Self
where A: Into<DedupStep>,

Source

pub fn sum<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
where A: Into<Scope>, T: Terminator<GValue>,

Source

pub fn max<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
where A: Into<Scope>, T: Terminator<GValue>,

Source

pub fn mean<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
where A: Into<Scope>, T: Terminator<GValue>,

Source

pub fn min<A>(self, scope: A) -> GraphTraversal<S, GValue, T>
where A: Into<Scope>, T: Terminator<GValue>,

Source

pub fn is<A>(self, val: A) -> Self
where A: IntoPredicate,

Source

pub fn where_<A>(self, step: A) -> Self
where A: Into<WhereStep>,

Source

pub fn not<A>(self, step: A) -> Self
where A: Into<NotStep>,

Source

pub fn order<A>(self, scope: A) -> Self
where A: Into<Scope>,

Source

pub fn match_<A>(self, step: A) -> GraphTraversal<S, Map, T>
where A: Into<MatchStep>, T: Terminator<Map>,

Source

pub fn drop(self) -> Self

Source

pub fn or<A>(self, step: A) -> Self
where A: Into<OrStep>,

Source

pub fn map<A>(self, step: A) -> Self
where A: Into<ByStep>,

Source

pub fn project<A>(self, step: A) -> GraphTraversal<S, GValue, T>

Source

pub fn v<VT>(self, ids: VT) -> Self
where VT: Into<GIDs>,

Source

pub fn repeat<A>(self, step: A) -> Self
where A: Into<RepeatStep>,

Source

pub fn until<A>(self, step: A) -> Self
where A: Into<UntilStep>,

Source

pub fn simple_path(self) -> Self

Source

pub fn sample(self, step: i32) -> Self

Source

pub fn loops<A>(self, step: A) -> Self
where A: Into<LoopsStep>,

Source

pub fn local<A>(self, step: A) -> Self
where A: Into<LocalStep>,

Source

pub fn aggregate<A>(self, alias: A) -> Self
where A: Into<String>,

Source

pub fn value(self) -> Self

Source

pub fn choose<A>(self, step: A) -> Self
where A: IntoChooseStep,

Source

pub fn coalesce<B, A>(self, colaesce: A) -> GraphTraversal<S, B, T>
where A: Into<CoalesceStep>, B: FromGValue, T: Terminator<B>,

Source

pub fn identity(self) -> Self

Source

pub fn range(self, step: i64, step2: i64) -> Self

Source

pub fn cap(self, step: &'static str) -> Self

Source

pub fn barrier(self) -> Self

Source

pub fn optional(self, step: TraversalBuilder) -> Self

Source

pub fn constant<A>(self, value: A) -> Self
where A: Into<GValue>,

Source

pub fn emit(self) -> Self

Trait Implementations§

Source§

impl<S: Clone, E: Clone + FromGValue, T: Clone + Terminator<E>> Clone for GraphTraversal<S, E, T>

Source§

fn clone(&self) -> GraphTraversal<S, E, T>

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

Auto Trait Implementations§

§

impl<S, E, T> Freeze for GraphTraversal<S, E, T>
where T: Freeze,

§

impl<S, E, T> RefUnwindSafe for GraphTraversal<S, E, T>

§

impl<S, E, T> Send for GraphTraversal<S, E, T>
where T: Send, S: Send, E: Send,

§

impl<S, E, T> Sync for GraphTraversal<S, E, T>
where T: Sync, S: Sync, E: Sync,

§

impl<S, E, T> Unpin for GraphTraversal<S, E, T>
where T: Unpin, S: Unpin, E: Unpin,

§

impl<S, E, T> UnwindSafe for GraphTraversal<S, E, T>
where T: UnwindSafe, S: UnwindSafe, E: UnwindSafe,

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.