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

Method MakeSchema

cpp/src/arrow/stl.h:269–271  ·  view source on GitHub ↗

Build a Schema from the types of the tuple-like structure passed in as template parameter assign the column names at runtime. An example usage of this API can look like the following: \code{.cpp} using TupleType = std::tuple >; std::shared_ptr schema = SchemaFromTuple ::MakeSchema({"int_column", "list_of_strings_column"}); \endcode

Source from the content-addressed store, hash-verified

267 /// SchemaFromTuple<TupleType>::MakeSchema({"int_column", "list_of_strings_column"});
268 /// \endcode
269 static std::shared_ptr<Schema> MakeSchema(const std::vector<std::string>& names) {
270 return std::make_shared<Schema>(MakeSchemaRecursion(names));
271 }
272
273 // Implementations that take a tuple-like object for the column names.
274

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected