pub enum IvfflatIterativeScan {
Off,
RelaxedOrder,
}Expand description
The same setting for pgvector’s IVFFlat index (#1116).
A separate type from HnswIterativeScan because pgvector accepts a
different set of values here — measured against pgvector 0.8.6:
WARNING: invalid value for parameter "ivfflat.iterative_scan": "strict_order"
HINT: Available values: off, relaxed_order.and the setting then falls back to off. One shared enum with a clamp would
turn the operator’s choice into a value the server discards, which is the
shape of the defect being fixed. Here it is simply not expressible.
Variants§
Off
pgvector’s own default; see HnswIterativeScan::Off.
RelaxedOrder
Continue scanning until k rows survive the filter. The only
continuation mode IVFFlat defines.
Implementations§
Source§impl IvfflatIterativeScan
impl IvfflatIterativeScan
Sourcepub const fn as_guc_value(self) -> &'static str
pub const fn as_guc_value(self) -> &'static str
The value as pgvector spells it.
Trait Implementations§
Source§impl Clone for IvfflatIterativeScan
impl Clone for IvfflatIterativeScan
Source§fn clone(&self) -> IvfflatIterativeScan
fn clone(&self) -> IvfflatIterativeScan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IvfflatIterativeScan
Source§impl Debug for IvfflatIterativeScan
impl Debug for IvfflatIterativeScan
Source§impl Default for IvfflatIterativeScan
impl Default for IvfflatIterativeScan
Source§fn default() -> IvfflatIterativeScan
fn default() -> IvfflatIterativeScan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IvfflatIterativeScan
impl<'de> Deserialize<'de> for IvfflatIterativeScan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IvfflatIterativeScan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IvfflatIterativeScan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IvfflatIterativeScan
Source§impl PartialEq for IvfflatIterativeScan
impl PartialEq for IvfflatIterativeScan
Source§impl Serialize for IvfflatIterativeScan
impl Serialize for IvfflatIterativeScan
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IvfflatIterativeScan
Auto Trait Implementations§
impl Freeze for IvfflatIterativeScan
impl RefUnwindSafe for IvfflatIterativeScan
impl Send for IvfflatIterativeScan
impl Sync for IvfflatIterativeScan
impl Unpin for IvfflatIterativeScan
impl UnsafeUnpin for IvfflatIterativeScan
impl UnwindSafe for IvfflatIterativeScan
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.