pub struct QueryResult { /* private fields */ }Implementations§
Source§impl QueryResult
impl QueryResult
pub fn new(schema: SchemaRef, batches: Vec<RecordBatch>) -> Self
pub fn schema(&self) -> &SchemaRef
pub fn batches(&self) -> &[RecordBatch]
pub fn into_batches(self) -> Vec<RecordBatch>
pub fn num_rows(&self) -> usize
pub fn concat_batches(&self) -> Result<RecordBatch>
pub fn to_sdk_json(&self) -> Value
pub fn to_rust_json(&self) -> Value
pub fn deserialize<T: DeserializeOwned>(&self) -> Result<T>
pub fn to_arrow_ipc(&self) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for QueryResult
impl Clone for QueryResult
Source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryResult
impl !RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
impl !UnwindSafe 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