pub struct QueryTableRequest {Show 21 fields
pub identity: Option<Box<Identity>>,
pub context: Option<HashMap<String, String>>,
pub id: Option<Vec<String>>,
pub bypass_vector_index: Option<bool>,
pub columns: Option<Box<QueryTableRequestColumns>>,
pub distance_type: Option<String>,
pub ef: Option<i32>,
pub fast_search: Option<bool>,
pub filter: Option<String>,
pub full_text_query: Option<Box<QueryTableRequestFullTextQuery>>,
pub k: i32,
pub lower_bound: Option<f32>,
pub nprobes: Option<i32>,
pub offset: Option<i32>,
pub prefilter: Option<bool>,
pub refine_factor: Option<i32>,
pub upper_bound: Option<f32>,
pub vector: Box<QueryTableRequestVector>,
pub vector_column: Option<String>,
pub version: Option<i64>,
pub with_row_id: Option<bool>,
}Fields§
§identity: Option<Box<Identity>>§context: Option<HashMap<String, String>>Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention x-lance-ctx-<key>: <value>. For example, a context entry {\"trace_id\": \"abc123\"} would be sent as the header x-lance-ctx-trace_id: abc123.
id: Option<Vec<String>>§bypass_vector_index: Option<bool>Whether to bypass vector index
columns: Option<Box<QueryTableRequestColumns>>§distance_type: Option<String>Distance metric to use
ef: Option<i32>Search effort parameter for HNSW index
fast_search: Option<bool>Whether to use fast search
filter: Option<String>Optional SQL filter expression
full_text_query: Option<Box<QueryTableRequestFullTextQuery>>§k: i32Number of results to return
lower_bound: Option<f32>Lower bound for search
nprobes: Option<i32>Number of probes for IVF index
offset: Option<i32>Number of results to skip
prefilter: Option<bool>Whether to apply filtering before vector search
refine_factor: Option<i32>Refine factor for search
upper_bound: Option<f32>Upper bound for search
vector: Box<QueryTableRequestVector>§vector_column: Option<String>Name of the vector column to search
version: Option<i64>Table version to query
with_row_id: Option<bool>If true, return the row id as a column called _rowid
Implementations§
Source§impl QueryTableRequest
impl QueryTableRequest
pub fn new(k: i32, vector: QueryTableRequestVector) -> QueryTableRequest
Trait Implementations§
Source§impl Clone for QueryTableRequest
impl Clone for QueryTableRequest
Source§fn clone(&self) -> QueryTableRequest
fn clone(&self) -> QueryTableRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryTableRequest
impl Debug for QueryTableRequest
Source§impl Default for QueryTableRequest
impl Default for QueryTableRequest
Source§fn default() -> QueryTableRequest
fn default() -> QueryTableRequest
Source§impl<'de> Deserialize<'de> for QueryTableRequest
impl<'de> Deserialize<'de> for QueryTableRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryTableRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueryTableRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for QueryTableRequest
impl PartialEq for QueryTableRequest
Source§impl Serialize for QueryTableRequest
impl Serialize for QueryTableRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for QueryTableRequest
Auto Trait Implementations§
impl Freeze for QueryTableRequest
impl RefUnwindSafe for QueryTableRequest
impl Send for QueryTableRequest
impl Sync for QueryTableRequest
impl Unpin for QueryTableRequest
impl UnwindSafe for QueryTableRequest
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more