pub struct BaseKGDB<ED, EMD>{
pub datadir: PathBuf,
pub classes: ReadonlyRocksDBDict<String, Class>,
pub props: ReadonlyRocksDBDict<String, Property>,
pub entities: ED,
pub entity_redirection: ReadonlyRocksDBDict<String, String>,
pub entity_metadata: EMD,
pub entity_outlink: ReadonlyRocksDBDict<String, EntityOutLink>,
pub entity_pagerank: ReadonlyRocksDBDict<String, f64>,
pub kgns: KnowledgeGraphNamespace,
}Fields§
§datadir: PathBuf§classes: ReadonlyRocksDBDict<String, Class>§props: ReadonlyRocksDBDict<String, Property>§entities: ED§entity_redirection: ReadonlyRocksDBDict<String, String>§entity_metadata: EMD§entity_outlink: ReadonlyRocksDBDict<String, EntityOutLink>§entity_pagerank: ReadonlyRocksDBDict<String, f64>§kgns: KnowledgeGraphNamespaceImplementations§
Source§impl BaseKGDB<ReadonlyRocksDBDict<String, Entity>, ReadonlyRocksDBDict<String, EntityMetadata>>
impl BaseKGDB<ReadonlyRocksDBDict<String, Entity>, ReadonlyRocksDBDict<String, EntityMetadata>>
pub fn new(datadir: &str) -> Result<Self, KGDataError>
Auto Trait Implementations§
impl<ED, EMD> Freeze for BaseKGDB<ED, EMD>
impl<ED, EMD> RefUnwindSafe for BaseKGDB<ED, EMD>where
ED: RefUnwindSafe,
EMD: RefUnwindSafe,
impl<ED, EMD> Send for BaseKGDB<ED, EMD>
impl<ED, EMD> Sync for BaseKGDB<ED, EMD>
impl<ED, EMD> Unpin for BaseKGDB<ED, EMD>
impl<ED, EMD> UnwindSafe for BaseKGDB<ED, EMD>where
ED: UnwindSafe,
EMD: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more