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

Method ToCsvString

cpp/src/arrow/csv/writer_test.cc:315–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 protected:
314 template <typename Data>
315 Result<std::string> ToCsvString(const Data& data, const WriteOptions& options) {
316 std::shared_ptr<io::BufferOutputStream> out;
317 ARROW_ASSIGN_OR_RAISE(out, io::BufferOutputStream::Create());
318
319 RETURN_NOT_OK(WriteCSV(data, options, out.get()));
320 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Buffer> buffer, out->Finish());
321 return std::string(reinterpret_cast<const char*>(buffer->data()), buffer->size());
322 }
323
324 Result<std::string> ToCsvStringUsingWriter(const Table& data,
325 const WriteOptions& options) {

Callers

nothing calls this directly

Calls 6

WriteCSVFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50
getMethod · 0.45
FinishMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected