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

Method from_dir_name

datafusion-examples/src/utils/example_metadata/model.rs:89–97  ·  view source on GitHub ↗

Creates a group name from a directory name.

(raw: String)

Source from the content-addressed store, hash-verified

87impl GroupName {
88 /// Creates a group name from a directory name.
89 pub fn from_dir_name(raw: String) -> Self {
90 let title = raw
91 .split('_')
92 .map(format_part)
93 .collect::<Vec<_>>()
94 .join(" ");
95
96 Self { raw, title }
97 }
98
99 /// Returns the raw group name (directory name).
100 pub fn raw(&self) -> &str {

Callers

nothing calls this directly

Calls 3

joinMethod · 0.45
mapMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected