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

Method SetUpSchema

cpp/src/parquet/test_util.h:665–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663 using c_type = typename TestType::c_type;
664
665 virtual void SetUpSchema(Repetition::type repetition, int num_columns) {
666 std::vector<schema::NodePtr> fields;
667
668 for (int i = 0; i < num_columns; ++i) {
669 std::string name = TestColumnName(i);
670 fields.push_back(schema::PrimitiveNode::Make(name, repetition, TestType::type_num,
671 ConvertedType::NONE, FLBA_LENGTH));
672 }
673 node_ = schema::GroupNode::Make("schema", Repetition::REQUIRED, fields);
674 schema_.Init(node_);
675 }
676
677 void SetUpSchema(Repetition::type repetition) { this->SetUpSchema(repetition, 1); }
678

Callers 7

SetUpMethod · 0.45
TYPED_TESTFunction · 0.45
TEST_FFunction · 0.45
TestWithEncodingMethod · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
SetUpMethod · 0.45
RepeatedUnequalRowsMethod · 0.45

Calls 4

TestColumnNameFunction · 0.85
push_backMethod · 0.80
MakeFunction · 0.70
InitMethod · 0.45

Tested by

no test coverage detected