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

Method fmt_as

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

Source from the content-addressed store, hash-verified

349
350impl DisplayAs for ArrowFileSink {
351 fn fmt_as(&self, t: DisplayFormatType, f: &mut fmt::Formatter<'_>) -> fmt::Result {
352 match t {
353 DisplayFormatType::Default | DisplayFormatType::Verbose => {
354 write!(f, "ArrowFileSink(file_groups=",)?;
355 FileGroupDisplay(&self.config.file_group).fmt_as(t, f)?;
356 write!(f, ")")
357 }
358 DisplayFormatType::TreeRender => {
359 writeln!(f, "format: arrow")?;
360 write!(f, "file={}", &self.config.original_url)
361 }
362 }
363 }
364}
365
366#[async_trait]

Callers

nothing calls this directly

Calls 1

FileGroupDisplayClass · 0.85

Tested by

no test coverage detected