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

Function NewPrimitive

cpp/src/parquet/schema_test.cc:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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