struct ScndIdxCreationJob<'job> {
    db: &'job DB,
    _si_cr_guard: MutexGuard<'job, ()>,
    sv_spec: Arc<SubValueSpec>,
    si_num: ScndIdxNum,
    pre_output_commit_ver: CommitVer,
    output_commit_ver: CommitVer,
    output_node: NonNullSendPtr<ListNode<CommittedUnit>>,
    job_dir: ScndIdxCreationJobDir,
    prim_entryset_file_paths: Vec<PathBuf>,
}

Fields§

§db: &'job DB§_si_cr_guard: MutexGuard<'job, ()>§sv_spec: Arc<SubValueSpec>§si_num: ScndIdxNum§pre_output_commit_ver: CommitVer§output_commit_ver: CommitVer§output_node: NonNullSendPtr<ListNode<CommittedUnit>>§job_dir: ScndIdxCreationJobDir§prim_entryset_file_paths: Vec<PathBuf>

Implementations§

source§

impl<'job> ScndIdxCreationJob<'job>

source

pub(super) fn create_unit(&mut self) -> Result<Option<PathBuf>>

source

fn derive_scnd_entries<'snap>( &'snap self ) -> Result<impl 'snap + Iterator<Item = Result<(SVPKShared, PVShared)>>>

source

fn create_all_intermediary_files<'a>( &self, scnd_entries: impl 'a + Iterator<Item = Result<(SVPKShared, PVShared)>> ) -> Result<Vec<PathBuf>>

source

fn create_one_intermediary_file( &self, memtable: &BTreeMap<SVPKShared, PVShared> ) -> Result<PathBuf>

source

fn merge_intermediary_files( &self, interm_file_paths: Vec<PathBuf> ) -> Result<Option<PathBuf>>

source§

impl<'job> ScndIdxCreationJob<'job>

source

async fn new( db: &'job DB, sv_spec: &Arc<SubValueSpec> ) -> Result<Self, ScndIdxCreationJobErr>

source

async fn run(&mut self) -> Result<(), ScndIdxCreationJobErr>

source

async fn modify_lsm_state( &self, merged_file_path: Option<PathBuf> ) -> Result<()>

source

fn remove_intermediary_files(self) -> Result<()>

Auto Trait Implementations§

§

impl<'job> !RefUnwindSafe for ScndIdxCreationJob<'job>

§

impl<'job> Send for ScndIdxCreationJob<'job>

§

impl<'job> Sync for ScndIdxCreationJob<'job>

§

impl<'job> Unpin for ScndIdxCreationJob<'job>

§

impl<'job> !UnwindSafe for ScndIdxCreationJob<'job>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Erased for T