pub struct TripleLinkRequest {
pub graph: String,
pub index_name: String,
pub mode: i32,
pub query: Vec<f32>,
pub k: u32,
pub ef_search: u32,
pub predicate: String,
pub seed: String,
pub hops: u32,
pub limit: u32,
pub as_of: u64,
}Fields§
§graph: Stringtriple graph name → CF t:{graph}
index_name: Stringvector index to search (HNSW/SpFresh)
mode: i32§query: Vec<f32>query vector (VECTOR_TO_TRIPLE / VECTOR_GUIDED_KHOP)
k: u32ANN fan-out / candidate pool size
ef_search: u32optional HNSW ef_search override (0 ⇒ default)
predicate: StringThe predicate constraining the linkage. For VECTOR_TO_TRIPLE the candidate must have an outgoing (id, predicate, ?) triple; for TRIPLE_TO_VECTOR the seed’s existing (seed, predicate, ?) objects are excluded from results; for VECTOR_GUIDED_KHOP it is the edge predicate to expand.
seed: StringSeed subject term (TRIPLE_TO_VECTOR / VECTOR_GUIDED_KHOP).
hops: u32Hops to expand for VECTOR_GUIDED_KHOP (>=1; 0 ⇒ 1).
limit: u32Cap on returned linked entities (0 ⇒ a server default).
as_of: u64Optional point-in-time filter for the triple-side scans (see as_of above).
Implementations§
Source§impl TripleLinkRequest
impl TripleLinkRequest
Sourcepub fn mode(&self) -> TripleLinkMode
pub fn mode(&self) -> TripleLinkMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: TripleLinkMode)
pub fn set_mode(&mut self, value: TripleLinkMode)
Sets mode to the provided enum value.
Trait Implementations§
Source§impl Clone for TripleLinkRequest
impl Clone for TripleLinkRequest
Source§fn clone(&self) -> TripleLinkRequest
fn clone(&self) -> TripleLinkRequest
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 TripleLinkRequest
impl Debug for TripleLinkRequest
Source§impl Default for TripleLinkRequest
impl Default for TripleLinkRequest
Source§impl Message for TripleLinkRequest
impl Message for TripleLinkRequest
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 TripleLinkRequest
impl PartialEq for TripleLinkRequest
impl StructuralPartialEq for TripleLinkRequest
Auto Trait Implementations§
impl Freeze for TripleLinkRequest
impl RefUnwindSafe for TripleLinkRequest
impl Send for TripleLinkRequest
impl Sync for TripleLinkRequest
impl Unpin for TripleLinkRequest
impl UnsafeUnpin for TripleLinkRequest
impl UnwindSafe for TripleLinkRequest
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