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

Method MakeSchemaRecursionT

cpp/src/arrow/stl.h:279–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 /// In most cases MakeSchema is the better entrypoint for the Schema creation.
278 template <typename NamesTuple>
279 static std::vector<std::shared_ptr<Field>> MakeSchemaRecursionT(
280 const NamesTuple& names) {
281 using std::get;
282
283 std::vector<std::shared_ptr<Field>> ret =
284 SchemaFromTuple<Tuple, N - 1>::MakeSchemaRecursionT(names);
285 std::shared_ptr<DataType> type = ConversionTraits<Element>::type_singleton();
286 ret.push_back(
287 field(get<N - 1>(names), type, internal::is_optional_like<Element>::value));
288 return ret;
289 }
290
291 /// Build a Schema from the types of the tuple-like structure passed in as template
292 /// 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