pub struct QueryResult { /* private fields */ }Expand description
The complete result of a query: a collection of Arrow RecordBatches.
Use for row in result (yields Row) for row-oriented access, or
QueryResult::record_batches() for direct Arrow access.
Implementations§
Source§impl QueryResult
impl QueryResult
pub fn new(schema: SchemaRef, batches: Vec<RecordBatch>) -> Self
pub fn schema(&self) -> &SchemaRef
Sourcepub fn record_batches(&self) -> &[RecordBatch]
pub fn record_batches(&self) -> &[RecordBatch]
The underlying Arrow record batches (zero-copy).
Sourcepub fn column_names(&self) -> Vec<&str>
pub fn column_names(&self) -> Vec<&str>
Column names in schema order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueryResult
impl !UnwindSafe for QueryResult
impl Freeze for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request