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

Method Init

cpp/src/arrow/json/from_string.cc:667–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665 explicit FixedSizeListConverter(const std::shared_ptr<DataType>& type) { type_ = type; }
666
667 Status Init() override {
668 const auto& list_type = checked_cast<const FixedSizeListType&>(*type_);
669 list_size_ = list_type.list_size();
670 RETURN_NOT_OK(GetConverter(list_type.value_type(), &child_converter_));
671 auto child_builder = child_converter_->builder();
672 builder_ = std::make_shared<FixedSizeListBuilder>(default_memory_pool(),
673 child_builder, type_);
674 return Status::OK();
675 }
676
677 Status AppendValue(const rj::Value& json_obj) override {
678 if (json_obj.IsNull()) {

Callers

nothing calls this directly

Calls 6

default_memory_poolFunction · 0.85
GetConverterFunction · 0.70
OKFunction · 0.70
list_sizeMethod · 0.45
value_typeMethod · 0.45
builderMethod · 0.45

Tested by

no test coverage detected