pub struct MemorySource { /* private fields */ }Expand description
A table’s rows in memory.
Implementations§
Source§impl MemorySource
impl MemorySource
pub fn new(table: Table) -> Rc<Self>
Sourcepub fn fork(&self) -> Rc<Self>
pub fn fork(&self) -> Rc<Self>
A source with the same rows that shares them until either is written
(fork). It has no connections and only the primary index.
Sourcepub fn has_connections(&self) -> bool
pub fn has_connections(&self) -> bool
Whether a pipeline reads the source.
Sourcepub fn index_keys(&self) -> Vec<String>
pub fn index_keys(&self) -> Vec<String>
For tests: the keys of the indexes built so far.
Trait Implementations§
Source§impl Source for MemorySource
impl Source for MemorySource
fn table_schema(&self) -> &Table
Source§fn connect(
&self,
sort: Option<Vec<OrderPart>>,
filters: Option<&Condition>,
split_edit_keys: Option<&HashSet<String>>,
) -> Result<Rc<dyn SourceInput>, PipelineError>
fn connect( &self, sort: Option<Vec<OrderPart>>, filters: Option<&Condition>, split_edit_keys: Option<&HashSet<String>>, ) -> Result<Rc<dyn SourceInput>, PipelineError>
Connects a pipeline.
sort is None for an unordered connection.fn push(&self, change: SourceChange)
Auto Trait Implementations§
impl !Freeze for MemorySource
impl !RefUnwindSafe for MemorySource
impl !Send for MemorySource
impl !Sync for MemorySource
impl !UnwindSafe for MemorySource
impl Forget for MemorySource
impl Move for MemorySource
impl Unpin for MemorySource
impl UnsafeUnpin for MemorySource
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