Struct tantivy::termdict::TermDictionaryImpl
[−]
[src]
pub struct TermDictionaryImpl { /* fields omitted */ }
See TermDictionary
Trait Implementations
impl<'a> TermDictionary<'a> for TermDictionaryImpl
[src]
type Streamer = TermStreamerImpl<'a>
Streamer type associated to the term dictionary
type StreamBuilder = TermStreamerBuilderImpl<'a>
StreamerBuilder type associated to the term dictionary
fn from_source(source: ReadOnlySource) -> Self
[src]
Opens a TermDictionary
given a data source.
fn num_terms(&self) -> usize
[src]
Returns the number of terms in the dictionary. Term ordinals range from 0 to num_terms() - 1
. Read more
fn term_ord<K: AsRef<[u8]>>(&self, key: K) -> Option<TermOrdinal>
[src]
Returns the ordinal associated to a given term.
fn ord_to_term(&self, ord: TermOrdinal, bytes: &mut Vec<u8>) -> bool
[src]
Returns the term associated to a given term ordinal. Read more
fn term_info_from_ord(&self, term_ord: TermOrdinal) -> TermInfo
[src]
Returns the number of terms in the dictionary.
fn get<K: AsRef<[u8]>>(&self, key: K) -> Option<TermInfo>
[src]
Lookups the value corresponding to the key.
fn range(&self) -> TermStreamerBuilderImpl
[src]
Returns a range builder, to stream all of the terms within an interval. Read more
fn stream(&'a self) -> Self::Streamer
[src]
A stream of all the sorted terms. See also .stream_field()
fn stream_field(&'a self, field: Field) -> Self::Streamer
[src]
A stream of all the sorted terms in the given field.