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

Function NewPrimitive

cpp/src/parquet/schema_test.cc:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42namespace schema {
43
44static inline SchemaElement NewPrimitive(const std::string& name,
45 FieldRepetitionType::type repetition,
46 Type::type type, int field_id = -1) {
47 SchemaElement result;
48 result.__set_name(name);
49 result.__set_repetition_type(repetition);
50 result.__set_type(static_cast<format::Type::type>(type));
51 if (field_id >= 0) {
52 result.__set_field_id(field_id);
53 }
54 return result;
55}
56
57static inline SchemaElement NewGroup(const std::string& name,
58 FieldRepetitionType::type repetition,

Callers 1

TEST_FFunction · 0.85

Calls 4

__set_nameMethod · 0.80
__set_repetition_typeMethod · 0.80
__set_typeMethod · 0.80
__set_field_idMethod · 0.80

Tested by

no test coverage detected