Struct tikv::import::SSTImporter[][src]

pub struct SSTImporter {
    dir: ImportDir,
    key_manager: Option<Arc<DataKeyManager>>,
    switcher: ImportModeSwitcher,
}

SSTImporter manages SST files that are waiting for ingesting.

Fields

dir: ImportDirkey_manager: Option<Arc<DataKeyManager>>switcher: ImportModeSwitcher

Implementations

impl SSTImporter[src]

pub fn new<P>(
    cfg: &Config,
    root: P,
    key_manager: Option<Arc<DataKeyManager>>
) -> Result<SSTImporter, Error> where
    P: AsRef<Path>, 
[src]

pub fn start_switch_mode_check<E>(&self, executor: &ThreadPool, db: E) where
    E: KvEngine
[src]

pub fn get_path(&self, meta: &SstMeta) -> PathBuf[src]

pub fn create(&self, meta: &SstMeta) -> Result<ImportFile, Error>[src]

pub fn delete(&self, meta: &SstMeta) -> Result<(), Error>[src]

pub fn ingest<E>(
    &self,
    meta: &SstMeta,
    engine: &E
) -> Result<SSTMetaInfo, Error> where
    E: KvEngine
[src]

pub fn exist(&self, meta: &SstMeta) -> bool[src]

pub fn download<E>(
    &self,
    meta: &SstMeta,
    backend: &StorageBackend,
    name: &str,
    rewrite_rule: &RewriteRule,
    speed_limiter: Limiter<CoarseClock>,
    sst_writer: <E as SstExt>::SstWriter
) -> Result<Option<Range>, Error> where
    E: KvEngine
[src]

pub fn enter_normal_mode<E>(
    &self,
    db: E,
    mf: fn(&str, &str, f64)
) -> Result<bool, Error> where
    E: KvEngine
[src]

pub fn enter_import_mode<E>(
    &self,
    db: E,
    mf: fn(&str, &str, f64)
) -> Result<bool, Error> where
    E: KvEngine
[src]

pub fn get_mode(&self) -> SwitchMode[src]

pub fn list_ssts(&self) -> Result<Vec<SstMeta, Global>, Error>[src]

pub fn new_writer<E>(
    &self,
    db: &E,
    meta: SstMeta
) -> Result<SSTWriter<E>, Error> where
    E: KvEngine
[src]

Auto Trait Implementations

impl !RefUnwindSafe for SSTImporter

impl Send for SSTImporter

impl Sync for SSTImporter

impl Unpin for SSTImporter

impl !UnwindSafe for SSTImporter

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<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

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>, 
[src]