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§
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>
sourcefn create_empty_reader() -> Reader<Self::ValueReader>
fn create_empty_reader() -> Reader<Self::ValueReader>
Returns an empty static reader.
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.