MCPcopy Create free account
hub / github.com/apache/arrow / MakeSchemaRecursion

Method MakeSchemaRecursion

cpp/src/arrow/stl.h:250–257  ·  view source on GitHub ↗

Recursively build a vector of arrow::Field from the defined types. In most cases MakeSchema is the better entrypoint for the Schema creation.

Source from the content-addressed store, hash-verified

248 ///
249 /// In most cases MakeSchema is the better entrypoint for the Schema creation.
250 static std::vector<std::shared_ptr<Field>> MakeSchemaRecursion(
251 const std::vector<std::string>& names) {
252 std::vector<std::shared_ptr<Field>> ret =
253 SchemaFromTuple<Tuple, N - 1>::MakeSchemaRecursion(names);
254 auto type = ConversionTraits<Element>::type_singleton();
255 ret.push_back(field(names[N - 1], type, internal::is_optional_like<Element>::value));
256 return ret;
257 }
258
259 /// Build a Schema from the types of the tuple-like structure passed in as template
260 /// parameter assign the column names at runtime.

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
type_singletonFunction · 0.70
fieldFunction · 0.70

Tested by

no test coverage detected