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

Method Visit

cpp/src/arrow/record_batch.cc:629–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627struct StringBuilderVisitor {
628 template <typename DataType>
629 enable_if_has_string_view<DataType, Status> Visit(const DataType&,
630 ArrayBuilder* raw_builder,
631 const std::string& value) {
632 using Builder = typename TypeTraits<DataType>::BuilderType;
633 auto builder = static_cast<Builder*>(raw_builder);
634 return builder->Append(value);
635 }
636
637 Status Visit(const DataType& type, ArrayBuilder*, const std::string&) {
638 return Status::Invalid("Only string types are supported and the current type is ",

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.70
AppendMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected