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

Method ReplaceSchemaMetadata

cpp/src/arrow/record_batch.cc:175–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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