pub struct OwnedResultStream { /* private fields */ }Expand description
Binding-friendly result stream with no lifetime parameter.
Used by language bindings (Python, Node.js, WASM) where Rust lifetimes
cannot be expressed at the FFI boundary. The operator tree is 'static
because operators hold Arc<dyn GraphStoreSearch> rather than borrows; the
stores remain alive as long as the stream does.
Callers that need to tie the stream’s lifetime to something else (e.g.
a wrapping Arc<RwLock<GrafeoDB>> in a binding) should carry that
keepalive in their own wrapper alongside the stream.
§Stability: Experimental
Implementations§
Source§impl OwnedResultStream
impl OwnedResultStream
Sourcepub fn column_types(&self) -> &[LogicalType]
pub fn column_types(&self) -> &[LogicalType]
Column types. Initially Any; refined after the first non-empty chunk.
Sourcepub fn next_chunk(&mut self) -> Result<Option<DataChunk>>
pub fn next_chunk(&mut self) -> Result<Option<DataChunk>>
Pulls the next chunk. See ResultStream::next_chunk.
§Errors
Propagates operator errors and deadline timeouts.
Sourcepub fn into_row_iter(self) -> OwnedRowIterator ⓘ
pub fn into_row_iter(self) -> OwnedRowIterator ⓘ
Converts to a row iterator that buffers one chunk internally.
Sourcepub fn collect(self) -> Result<QueryResult>
pub fn collect(self) -> Result<QueryResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedResultStream
impl !RefUnwindSafe for OwnedResultStream
impl Send for OwnedResultStream
impl Sync for OwnedResultStream
impl Unpin for OwnedResultStream
impl UnsafeUnpin for OwnedResultStream
impl !UnwindSafe for OwnedResultStream
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