Struct tantivy::fastfield::BytesFastFieldReader[][src]

pub struct BytesFastFieldReader { /* fields omitted */ }

Reader for byte array fast fields

The reader is implemented as a u64 fast field and a separate collection of bytes.

The vals_reader will access the concatenated list of all values for all documents.

The idx_reader associates, for each document, the index of its first value.

Reading the value for a document is done by reading the start index for it, and the start index for the next document, and keeping the bytes in between.

Implementations

impl BytesFastFieldReader[src]

pub fn get_bytes(&self, doc: DocId) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the bytes associated to the given doc

pub fn total_num_bytes(&self) -> usize[src]

Returns the overall number of bytes in this bytes fast field.

Trait Implementations

impl Clone for BytesFastFieldReader[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,