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

Method Assemble

cpp/src/arrow/ipc/writer.cc:754–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752 }
753
754 Status Assemble(const std::shared_ptr<Array>& dictionary) {
755 // Make a dummy record batch. A bit tedious as we have to make a schema
756 auto schema = arrow::schema({arrow::field("dictionary", dictionary->type())});
757 auto batch = RecordBatch::Make(std::move(schema), dictionary->length(), {dictionary});
758 return RecordBatchSerializer::Assemble(*batch);
759 }
760
761 private:
762 int64_t dictionary_id_;

Callers 5

GetDictionaryPayloadFunction · 0.45
GetRecordBatchPayloadFunction · 0.45
WriteRecordBatchFunction · 0.45
WriteSparseTensorFunction · 0.45
GetSparseTensorPayloadFunction · 0.45

Calls 5

schemaFunction · 0.70
fieldFunction · 0.50
MakeFunction · 0.50
typeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected