Struct tantivy::Segment [] [src]

pub struct Segment { /* fields omitted */ }

A segment is a piece of the index.

Methods

impl Segment
[src]

Returns our index's schema.

Returns the segment's id.

Returns the relative path of a component of our segment.

It just joins the segment id with the extension associated to a segment component.

Deletes all of the document of the segment. This is called when there is a merge or a rollback.

Disclaimer

If deletion of a file fails (e.g. a file was read-only.), the method does not fail and just logs an error

Open one of the component file for read.

Open one of the component file for write.

Trait Implementations

impl Clone for Segment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Segment
[src]

Formats the value using the given formatter.