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

Method ReplaceSchemaMetadata

cpp/src/arrow/record_batch.cc:174–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 std::shared_ptr<RecordBatch> ReplaceSchemaMetadata(
175 const std::shared_ptr<const KeyValueMetadata>& metadata) const override {
176 auto new_schema = schema_->WithMetadata(metadata);
177 return RecordBatch::Make(std::move(new_schema), num_rows_, columns_, device_type_,
178 sync_event_);
179 }
180
181 std::shared_ptr<RecordBatch> Slice(int64_t offset, int64_t length) const override {
182 std::vector<std::shared_ptr<ArrayData>> arrays;

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.70
WithMetadataMethod · 0.45

Tested by

no test coverage detected