pub struct GraphAnalyticsRequest {
pub graph_name: String,
pub algorithm: i32,
pub edge_type: String,
pub as_of: u64,
pub iterations: u32,
pub tolerance: f32,
pub damping: f32,
pub write_back: bool,
pub top_k: u32,
pub tx_as_of: u64,
}Fields§
§graph_name: String§algorithm: i32§edge_type: StringOptional: keep only edges of this type (empty = all types).
as_of: u64Optional: only edges live at this timestamp (ms); 0 = current/all.
iterations: u32PageRank / iterative params (0 = engine default).
tolerance: f32§damping: f32PageRank damping factor (default 0.85)
write_back: boolIf true, persist scores back into each node’s properties under a reserved “__analytics” sub-key so later traversals/searches can order by them.
top_k: u32Optional cap on returned rows (0 = return all). Write-back still applies to every node regardless of this cap.
tx_as_of: u64Optional transaction-time (recorded-at / belief) point (ms); 0 = current
belief / no filter. When set, only edges believed at tx_as_of are counted
(tx_from <= tx_as_of && (tx_to == 0 || tx_to > tx_as_of)); legacy edges
(tx_from == 0) are always known. This is the same predicate the bitemporal
traversal read path applies, so analytics excludes belief-retracted edges
consistently with every other graph reader (issue #1920).
Implementations§
Source§impl GraphAnalyticsRequest
impl GraphAnalyticsRequest
Sourcepub fn algorithm(&self) -> GraphAnalyticsAlgorithm
pub fn algorithm(&self) -> GraphAnalyticsAlgorithm
Returns the enum value of algorithm, or the default if the field is set to an invalid enum value.
Sourcepub fn set_algorithm(&mut self, value: GraphAnalyticsAlgorithm)
pub fn set_algorithm(&mut self, value: GraphAnalyticsAlgorithm)
Sets algorithm to the provided enum value.
Trait Implementations§
Source§impl Clone for GraphAnalyticsRequest
impl Clone for GraphAnalyticsRequest
Source§fn clone(&self) -> GraphAnalyticsRequest
fn clone(&self) -> GraphAnalyticsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphAnalyticsRequest
impl Debug for GraphAnalyticsRequest
Source§impl Default for GraphAnalyticsRequest
impl Default for GraphAnalyticsRequest
Source§impl Message for GraphAnalyticsRequest
impl Message for GraphAnalyticsRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GraphAnalyticsRequest
impl PartialEq for GraphAnalyticsRequest
impl StructuralPartialEq for GraphAnalyticsRequest
Auto Trait Implementations§
impl Freeze for GraphAnalyticsRequest
impl RefUnwindSafe for GraphAnalyticsRequest
impl Send for GraphAnalyticsRequest
impl Sync for GraphAnalyticsRequest
impl Unpin for GraphAnalyticsRequest
impl UnsafeUnpin for GraphAnalyticsRequest
impl UnwindSafe for GraphAnalyticsRequest
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request