Struct tantivy::Segment [] [src]

pub struct Segment { /* fields omitted */ }

A segment is a piece of the index.

Methods

impl Segment
[src]

[src]

Returns the index the segment belongs to.

[src]

Returns our index's schema.

[src]

Returns the segment meta-information

[src]

Returns the segment's id.

[src]

Returns the relative path of a component of our segment.

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

[src]

Protects a specific component file from being deleted.

Returns a FileProtection object. The file is guaranteed to not be garbage collected as long as this FileProtection object lives.

[src]

Open one of the component file for a regular read.

[src]

Open one of the component file for regular write.

Trait Implementations

impl Clone for Segment
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Segment
[src]

[src]

Formats the value using the given formatter. Read more