Struct unbase::context::Context
[−]
[src]
pub struct Context(_);
Methods
impl Context
[src]
User interface functions - Programmer API for Context
pub fn get_subject_by_id(
&self,
subject_id: SubjectId
) -> Result<Option<SubjectHandle>, RetrieveError>
[src]
&self,
subject_id: SubjectId
) -> Result<Option<SubjectHandle>, RetrieveError>
Retrive a Subject from the root index by ID
pub fn concise_contents(&self) -> Vec<String>
[src]
pub fn hack_send_context(&self, other: &Self) -> usize
[src]
pub fn get_relevant_subject_head(
&self,
subject_id: SubjectId
) -> Result<MemoRefHead, RetrieveError>
[src]
&self,
subject_id: SubjectId
) -> Result<MemoRefHead, RetrieveError>
pub fn root_index(&self) -> Result<Arc<IndexFixed>, RetrieveError>
[src]
pub fn root_index_wait(
&self,
wait: u64
) -> Result<Arc<IndexFixed>, RetrieveError>
[src]
&self,
wait: u64
) -> Result<Arc<IndexFixed>, RetrieveError>
pub fn get_resident_subject_head(&self, subject_id: SubjectId) -> MemoRefHead
[src]
pub fn get_resident_subject_head_memo_ids(
&self,
subject_id: SubjectId
) -> Vec<MemoId>
[src]
&self,
subject_id: SubjectId
) -> Vec<MemoId>
pub fn cmp(&self, other: &Self) -> bool
[src]
pub fn add_test_subject(
&self,
subject_id: SubjectId,
relations: Vec<MemoRefHead>
) -> MemoRefHead
[src]
&self,
subject_id: SubjectId,
relations: Vec<MemoRefHead>
) -> MemoRefHead
pub fn compact(&self) -> Result<(), WriteError>
[src]
Attempt to compress the present query context. We do this by issuing Relation memos for any subject heads which reference other subject heads presently in the query context. Then we can remove the now-referenced subject heads, and repeat the process in a topological fashion, confident that these referenced subject heads will necessarily be included in subsequent projection as a result.
pub fn is_fully_materialized(&self) -> bool
[src]
impl Context
[src]
pub fn new(slab: &Slab) -> Self
[src]
pub fn weak(&self) -> WeakContext
[src]
pub fn fetch_kv(
&self,
key: &str,
val: &str
) -> Result<Option<SubjectHandle>, RetrieveError>
[src]
&self,
key: &str,
val: &str
) -> Result<Option<SubjectHandle>, RetrieveError>
pub fn fetch_kv_wait(
&self,
key: &str,
val: &str,
ms: u64
) -> Result<SubjectHandle, RetrieveError>
[src]
&self,
key: &str,
val: &str,
ms: u64
) -> Result<SubjectHandle, RetrieveError>
Trait Implementations
impl Debug for Context
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Context
[src]
type Target = ContextInner
The resulting type after dereferencing.
fn deref(&self) -> &ContextInner
[src]
Dereferences the value.