pub struct SparseIndexEntry {
pub generation: u32,
}Expand description
Which sparse inverted-index object belongs to a segment: the object is
segments/<id>/sparse-idx-<generation>.bin. Unlike
IndexEntry there is no kind — one algorithm, an inverted index over
term-weight pairs.
JSON form: {"gen": 1}.
Fields§
§generation: u32Starts at 1 and goes up by one each time the segment’s sparse index is rebuilt, so a rebuild never overwrites the object a reader may be using.
Trait Implementations§
Source§impl Clone for SparseIndexEntry
impl Clone for SparseIndexEntry
Source§impl Debug for SparseIndexEntry
impl Debug for SparseIndexEntry
Source§impl<'de> Deserialize<'de> for SparseIndexEntry
impl<'de> Deserialize<'de> for SparseIndexEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SparseIndexEntry
Source§impl PartialEq for SparseIndexEntry
impl PartialEq for SparseIndexEntry
Source§impl Serialize for SparseIndexEntry
impl Serialize for SparseIndexEntry
impl StructuralPartialEq for SparseIndexEntry
Auto Trait Implementations§
impl Freeze for SparseIndexEntry
impl RefUnwindSafe for SparseIndexEntry
impl Send for SparseIndexEntry
impl Sync for SparseIndexEntry
impl Unpin for SparseIndexEntry
impl UnsafeUnpin for SparseIndexEntry
impl UnwindSafe for SparseIndexEntry
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§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> ⓘ
Converts
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> ⓘ
Converts
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