pub struct IndexerPool { /* private fields */ }Expand description
One indexer per account, created on first push from that account.
Implementations§
Source§impl IndexerPool
impl IndexerPool
Sourcepub fn new(archive: &Path, journal: Option<PathBuf>) -> Result<Self>
pub fn new(archive: &Path, journal: Option<PathBuf>) -> Result<Self>
archive is opened read-only by the workers to pread extents back.
Pack rows only; see with_absorber.
Sourcepub fn with_absorber(
archive: &Path,
journal: Option<PathBuf>,
absorber: Arc<dyn ObjectAbsorb>,
) -> Result<Self>
pub fn with_absorber( archive: &Path, journal: Option<PathBuf>, absorber: Arc<dyn ObjectAbsorb>, ) -> Result<Self>
The same pool with the object-level half wired in.
Sourcepub fn indexer(&self, account: &str) -> Arc<AccountIndexer> ⓘ
pub fn indexer(&self, account: &str) -> Arc<AccountIndexer> ⓘ
This account’s indexer, started on first use.
Sourcepub fn wait_caught_up(&self)
pub fn wait_caught_up(&self)
Block until every account’s index has caught up.
Auto Trait Implementations§
impl !Freeze for IndexerPool
impl !RefUnwindSafe for IndexerPool
impl !UnwindSafe for IndexerPool
impl Send for IndexerPool
impl Sync for IndexerPool
impl Unpin for IndexerPool
impl UnsafeUnpin for IndexerPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more