[−][src]Struct tantivy::IndexMeta
Meta information about the Index
.
This object is serialized on disk in the meta.json
file.
It keeps information about
- the searchable segments,
- the index
docstamp
- the schema
Fields
segments: Vec<SegmentMeta>
List of SegmentMeta
informations associated to each finalized segment of the index.
schema: Schema
Index Schema
opstamp: Opstamp
Opstamp associated to the last commit
operation.
payload: Option<String>
Payload associated to the last commit.
Upon commit, clients can optionally add a small Striing
payload to their commit
to help identify this commit.
This payload is entirely unused by tantivy.
Methods
impl IndexMeta
[src]
pub fn with_schema(schema: Schema) -> IndexMeta
[src]
Create an IndexMeta
object representing a brand new Index
with the given index.
This new index does not contains any segments.
Opstamp will the value 0u64
.
Trait Implementations
Auto Trait Implementations
impl Send for IndexMeta
impl Unpin for IndexMeta
impl Sync for IndexMeta
impl UnwindSafe for IndexMeta
impl RefUnwindSafe for IndexMeta
Blanket Implementations
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,