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

Method Init

cpp/src/arrow/util/converter.h:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131 protected:
132 Status Init(MemoryPool* pool) override {
133 list_type_ = checked_cast<const ArrowType*>(this->type_.get());
134 ARROW_ASSIGN_OR_RAISE(value_converter_,
135 (MakeConverter<BaseConverter, ConverterTrait>(
136 list_type_->value_type(), this->options_, pool)));
137 this->builder_ =
138 std::make_shared<BuilderType>(pool, value_converter_->builder(), this->type_);
139 list_builder_ = checked_cast<BuilderType*>(this->builder_.get());
140 // Narrow list types may overflow
141 this->may_overflow_ = this->rewind_on_overflow_ =
142 sizeof(typename ArrowType::offset_type) < sizeof(int64_t);
143 return Status::OK();
144 }
145
146 const ArrowType* list_type_;
147 BuilderType* list_builder_;

Callers

nothing calls this directly

Calls 5

ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
getMethod · 0.45
value_typeMethod · 0.45
builderMethod · 0.45

Tested by

no test coverage detected