[][src]Struct tantivy::termdict::TermDictionaryBuilder

pub struct TermDictionaryBuilder<W> { /* fields omitted */ }

Builder for the new term dictionary.

Inserting must be done in the order of the keys.

Methods

impl<W> TermDictionaryBuilder<W> where
    W: Write
[src]

pub fn create(w: W, _field_type: &FieldType) -> Result<Self>[src]

Creates a new TermDictionaryBuilder

pub fn insert<K: AsRef<[u8]>>(
    &mut self,
    key_ref: K,
    value: &TermInfo
) -> Result<()>
[src]

Inserts a (key, value) pair in the term dictionary.

Keys have to be inserted in order.

pub fn finish(self) -> Result<W>[src]

Finalize writing the builder, and returns the underlying Write object.

Auto Trait Implementations

impl<W> Send for TermDictionaryBuilder<W> where
    W: Send

impl<W> Sync for TermDictionaryBuilder<W> where
    W: Sync

impl<W> Unpin for TermDictionaryBuilder<W> where
    W: Unpin

impl<W> UnwindSafe for TermDictionaryBuilder<W> where
    W: UnwindSafe

impl<W> RefUnwindSafe for TermDictionaryBuilder<W> where
    W: RefUnwindSafe

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]