MCPcopy Create free account
hub / github.com/apache/datafusion / fmt_as

Method fmt_as

datafusion/datasource-csv/src/file_format.rs:753–765  ·  view source on GitHub ↗
(&self, t: DisplayFormatType, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

751
752impl DisplayAs for CsvSink {
753 fn fmt_as(&self, t: DisplayFormatType, f: &mut fmt::Formatter<'_>) -> fmt::Result {
754 match t {
755 DisplayFormatType::Default | DisplayFormatType::Verbose => {
756 write!(f, "CsvSink(file_groups=",)?;
757 FileGroupDisplay(&self.config.file_group).fmt_as(t, f)?;
758 write!(f, ")")
759 }
760 DisplayFormatType::TreeRender => {
761 writeln!(f, "format: csv")?;
762 write!(f, "file={}", &self.config.original_url)
763 }
764 }
765 }
766}
767
768impl CsvSink {

Callers

nothing calls this directly

Calls 1

FileGroupDisplayClass · 0.85

Tested by

no test coverage detected