Trait tantivy_sstable::SSTable

source ·
pub trait SSTable: Sized {
    type Value: Clone;
    type ValueReader: ValueReader<Value = Self::Value>;
    type ValueWriter: ValueWriter<Value = Self::Value>;

    // Provided methods
    fn delta_writer<W: Write>(write: W) -> DeltaWriter<W, Self::ValueWriter> { ... }
    fn writer<W: Write>(wrt: W) -> Writer<W, Self::ValueWriter> { ... }
    fn delta_reader(reader: OwnedBytes) -> DeltaReader<Self::ValueReader> { ... }
    fn reader(reader: OwnedBytes) -> Reader<Self::ValueReader> { ... }
    fn create_empty_reader() -> Reader<Self::ValueReader> { ... }
    fn merge<W: Write, M: ValueMerger<Self::Value>>(
        io_readers: Vec<OwnedBytes>,
        w: W,
        merger: M
    ) -> Result<()> { ... }
}
Expand description

SSTable makes it possible to read and write sstables with typed values.

Required Associated Types§

Provided Methods§

source

fn delta_writer<W: Write>(write: W) -> DeltaWriter<W, Self::ValueWriter>

source

fn writer<W: Write>(wrt: W) -> Writer<W, Self::ValueWriter>

source

fn delta_reader(reader: OwnedBytes) -> DeltaReader<Self::ValueReader>

source

fn reader(reader: OwnedBytes) -> Reader<Self::ValueReader>

source

fn create_empty_reader() -> Reader<Self::ValueReader>

Returns an empty static reader.

source

fn merge<W: Write, M: ValueMerger<Self::Value>>( io_readers: Vec<OwnedBytes>, w: W, merger: M ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§