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

Function ExampleSchema

cpp/src/arrow/c/bridge_benchmark.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace arrow::benchmarks {
32
33std::shared_ptr<Schema> ExampleSchema() {
34 auto f0 = field("f0", utf8());
35 auto f1 = field("f1", timestamp(TimeUnit::MICRO, "UTC"));
36 auto f2 = field("f2", int64());
37 auto f3 = field("f3", int16());
38 auto f4 = field("f4", int16());
39 auto f5 = field("f5", float32());
40 auto f6 = field("f6", float32());
41 auto f7 = field("f7", float32());
42 auto f8 = field("f8", decimal128(19, 10));
43 return schema({f0, f1, f2, f3, f4, f5, f6, f7, f8});
44}
45
46std::shared_ptr<RecordBatch> ExampleRecordBatch() {
47 // We don't care about the actual data, since it's exported as raw buffer pointers

Callers 3

ExampleRecordBatchFunction · 0.85
ExportSchemaFunction · 0.85
ExportImportSchemaFunction · 0.85

Calls 4

fieldFunction · 0.50
timestampFunction · 0.50
decimal128Function · 0.50
schemaFunction · 0.50

Tested by

no test coverage detected