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
Csv
Tsv
Table
Json
NdJson
Implementations
sourceimpl PrintFormat
impl PrintFormat
sourcepub fn print_batches(&self, batches: &[RecordBatch]) -> Result<()>
pub fn print_batches(&self, batches: &[RecordBatch]) -> Result<()>
print the batches to stdout using the specified format
Trait Implementations
sourceimpl ArgEnum for PrintFormat
impl ArgEnum for PrintFormat
sourcefn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
All possible argument values, in display order.
sourcefn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
fn to_possible_value<'a>(&self) -> Option<PossibleValue<'a>>
The canonical argument value. Read more
sourceimpl Clone for PrintFormat
impl Clone for PrintFormat
sourcefn clone(&self) -> PrintFormat
fn clone(&self) -> PrintFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PrintFormat
impl Debug for PrintFormat
sourceimpl FromStr for PrintFormat
impl FromStr for PrintFormat
sourceimpl PartialEq<PrintFormat> for PrintFormat
impl PartialEq<PrintFormat> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.