pub struct IntegerIndexParams {
pub lookup: Option<bool>,
pub range: Option<bool>,
pub is_principal: Option<bool>,
pub on_disk: Option<bool>,
pub enable_hnsw: Option<bool>,
}Fields§
§lookup: Option<bool>If true - support direct lookups. Default is true.
range: Option<bool>If true - support ranges filters. Default is true.
is_principal: Option<bool>If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests. Default is false.
on_disk: Option<bool>If true - store index on disk. Default is false.
enable_hnsw: Option<bool>Enable HNSW graph building for this payload field. If true, builds additional HNSW links (Need payload_m > 0). Default: true.
Implementations§
Source§impl IntegerIndexParams
impl IntegerIndexParams
Sourcepub fn lookup(&self) -> bool
pub fn lookup(&self) -> bool
Returns the value of lookup, or the default value if lookup is unset.
Sourcepub fn range(&self) -> bool
pub fn range(&self) -> bool
Returns the value of range, or the default value if range is unset.
Sourcepub fn is_principal(&self) -> bool
pub fn is_principal(&self) -> bool
Returns the value of is_principal, or the default value if is_principal is unset.
Sourcepub fn on_disk(&self) -> bool
pub fn on_disk(&self) -> bool
Returns the value of on_disk, or the default value if on_disk is unset.
Sourcepub fn enable_hnsw(&self) -> bool
pub fn enable_hnsw(&self) -> bool
Returns the value of enable_hnsw, or the default value if enable_hnsw is unset.
Trait Implementations§
Source§impl Clone for IntegerIndexParams
impl Clone for IntegerIndexParams
Source§fn clone(&self) -> IntegerIndexParams
fn clone(&self) -> IntegerIndexParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IntegerIndexParams
impl Debug for IntegerIndexParams
Source§impl Default for IntegerIndexParams
impl Default for IntegerIndexParams
Source§impl From<IntegerIndexParams> for IndexParams
impl From<IntegerIndexParams> for IndexParams
Source§fn from(value: IntegerIndexParams) -> Self
fn from(value: IntegerIndexParams) -> Self
Source§impl From<IntegerIndexParams> for PayloadIndexParams
impl From<IntegerIndexParams> for PayloadIndexParams
Source§fn from(value: IntegerIndexParams) -> Self
fn from(value: IntegerIndexParams) -> Self
Source§impl From<IntegerIndexParamsBuilder> for IntegerIndexParams
impl From<IntegerIndexParamsBuilder> for IntegerIndexParams
Source§fn from(value: IntegerIndexParamsBuilder) -> Self
fn from(value: IntegerIndexParamsBuilder) -> Self
Source§impl Message for IntegerIndexParams
impl Message for IntegerIndexParams
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 IntegerIndexParams
impl PartialEq for IntegerIndexParams
impl Copy for IntegerIndexParams
impl StructuralPartialEq for IntegerIndexParams
Auto Trait Implementations§
impl Freeze for IntegerIndexParams
impl RefUnwindSafe for IntegerIndexParams
impl Send for IntegerIndexParams
impl Sync for IntegerIndexParams
impl Unpin for IntegerIndexParams
impl UnsafeUnpin for IntegerIndexParams
impl UnwindSafe for IntegerIndexParams
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> 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