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

Method fmt_as

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

Source from the content-addressed store, hash-verified

421
422impl DisplayAs for JsonSink {
423 fn fmt_as(&self, t: DisplayFormatType, f: &mut fmt::Formatter<'_>) -> fmt::Result {
424 match t {
425 DisplayFormatType::Default | DisplayFormatType::Verbose => {
426 write!(f, "JsonSink(file_groups=",)?;
427 FileGroupDisplay(&self.config.file_group).fmt_as(t, f)?;
428 write!(f, ")")
429 }
430 DisplayFormatType::TreeRender => {
431 writeln!(f, "format: json")?;
432 write!(f, "file={}", &self.config.original_url)
433 }
434 }
435 }
436}
437
438impl JsonSink {

Callers

nothing calls this directly

Calls 1

FileGroupDisplayClass · 0.85

Tested by

no test coverage detected