pub struct GraphQueryEdgesBatchRequest {
pub graph_name: String,
pub node_ids: Vec<u64>,
pub edge_type: String,
pub time_start: u64,
pub time_end: u64,
pub reverse: bool,
pub as_of: u64,
pub tx_as_of: u64,
pub max_degree: u32,
pub read_ts: u64,
}Expand description
Batched edge query for a set of nodes that all live on the same shard.
Fields§
§graph_name: String§node_ids: Vec<u64>Nodes whose edges to fetch (all routed to the same shard by the caller).
edge_type: Stringempty = all types (applied at the data node)
time_start: u640 = no lower bound
time_end: u640 = no upper bound
reverse: booltrue = incoming edges
as_of: u64Point-in-time filter (ms), applied at the data node: valid_from <= as_of && (valid_to == 0 || valid_to > as_of). 0 = no filter.
tx_as_of: u64As-of-then transaction-time filter (ms), applied at the data node: tx_from <= tx_as_of && (tx_to == 0 || tx_to > tx_as_of). 0 = no filter.
max_degree: u32Per-node edge fanout cap, applied at the data node: scan at most this many of each node’s edges so a high-degree supernode cannot be materialized in full over RPC (OOM / latency). 0 = engine default (DEFAULT_MAX_DEGREE).
read_ts: u64Optional HLC snapshot timestamp (packed u64) for cross-shard txn read-path lock resolution (epic #1478, Phase 4). 0 = the gateway uses a fresh now(). Only consulted when STATELET_CROSS_SHARD_TXN is ON; otherwise ignored and edge reads behave exactly as today.
Trait Implementations§
Source§impl Clone for GraphQueryEdgesBatchRequest
impl Clone for GraphQueryEdgesBatchRequest
Source§fn clone(&self) -> GraphQueryEdgesBatchRequest
fn clone(&self) -> GraphQueryEdgesBatchRequest
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 GraphQueryEdgesBatchRequest
impl Debug for GraphQueryEdgesBatchRequest
Source§impl Message for GraphQueryEdgesBatchRequest
impl Message for GraphQueryEdgesBatchRequest
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.impl StructuralPartialEq for GraphQueryEdgesBatchRequest
Auto Trait Implementations§
impl Freeze for GraphQueryEdgesBatchRequest
impl RefUnwindSafe for GraphQueryEdgesBatchRequest
impl Send for GraphQueryEdgesBatchRequest
impl Sync for GraphQueryEdgesBatchRequest
impl Unpin for GraphQueryEdgesBatchRequest
impl UnsafeUnpin for GraphQueryEdgesBatchRequest
impl UnwindSafe for GraphQueryEdgesBatchRequest
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