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

Method GetFileSink

cpp/src/arrow/dataset/test_util_internal.h:487–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485 }
486
487 Result<std::shared_ptr<io::BufferOutputStream>> GetFileSink() {
488 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<ResizableBuffer> buffer,
489 AllocateResizableBuffer(0));
490 return std::make_shared<io::BufferOutputStream>(buffer);
491 }
492
493 void SetSchema(std::vector<std::shared_ptr<Field>> fields) {
494 opts_->dataset_schema = schema(std::move(fields));

Callers

nothing calls this directly

Calls 2

AllocateResizableBufferFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50

Tested by

no test coverage detected