Enum datafusion_cli::print_format::PrintFormat  
source · pub enum PrintFormat {
    Csv,
    Tsv,
    Table,
    Json,
    NdJson,
}Expand description
Allow records to be printed in different formats
Variants§
Implementations§
source§impl PrintFormat
 
impl PrintFormat
sourcepub fn print_batches(
    &self,
    batches: &[RecordBatch],
    maxrows: MaxRows
) -> Result<()>
 
pub fn print_batches( &self, batches: &[RecordBatch], maxrows: MaxRows ) -> Result<()>
print the batches to stdout using the specified format
maxrows option is only used for Table format:
If maxrows is Some(n), then at most n rows will be displayed
If maxrows is None, then every row will be displayed
Trait Implementations§
source§impl Clone for PrintFormat
 
impl Clone for PrintFormat
source§fn clone(&self) -> PrintFormat
 
fn clone(&self) -> PrintFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for PrintFormat
 
impl Debug for PrintFormat
source§impl FromStr for PrintFormat
 
impl FromStr for PrintFormat
source§impl PartialEq for PrintFormat
 
impl PartialEq for PrintFormat
source§fn eq(&self, other: &PrintFormat) -> bool
 
fn eq(&self, other: &PrintFormat) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl ValueEnum for PrintFormat
 
impl ValueEnum for PrintFormat
impl Eq for PrintFormat
impl StructuralEq for PrintFormat
impl StructuralPartialEq for PrintFormat
Auto Trait Implementations§
impl RefUnwindSafe for PrintFormat
impl Send for PrintFormat
impl Sync for PrintFormat
impl Unpin for PrintFormat
impl UnwindSafe for PrintFormat
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
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.