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

Method MakeBatch

cpp/src/arrow/ipc/read_write_test.cc:2783–2786  ·  view source on GitHub ↗

Make one-column batch

Source from the content-addressed store, hash-verified

2781
2782 // Make one-column batch
2783 std::shared_ptr<RecordBatch> MakeBatch(std::shared_ptr<Array> column) {
2784 return RecordBatch::Make(schema({field("f", column->type())}), column->length(),
2785 {column});
2786 }
2787
2788 // Make one-column batch with a dictionary array
2789 std::shared_ptr<RecordBatch> MakeBatch(std::shared_ptr<DataType> type,

Callers

nothing calls this directly

Calls 7

FromArraysFunction · 0.85
MakeBatchFunction · 0.85
schemaFunction · 0.70
MakeFunction · 0.50
fieldFunction · 0.50
typeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected