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

Method Init

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

Source from the content-addressed store, hash-verified

686 explicit FixedSizeListConverter(const std::shared_ptr<DataType>& type) { type_ = type; }
687
688 Status Init() override {
689 const auto& list_type = checked_cast<const FixedSizeListType&>(*type_);
690 list_size_ = list_type.list_size();
691 RETURN_NOT_OK(GetConverter(list_type.value_type(), &child_converter_));
692 auto child_builder = child_converter_->builder();
693 builder_ = std::make_shared<FixedSizeListBuilder>(default_memory_pool(),
694 child_builder, type_);
695 return Status::OK();
696 }
697
698 Status AppendValue(sj::value& json_obj) override {
699 ARROW_ASSIGN_OR_RAISE(bool is_null, internal::IsJsonNull(json_obj));

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