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

Method FinishScalar

cpp/src/arrow/json/parser.cc:622–630  ·  view source on GitHub ↗

finish a column of scalar values (string or number)

Source from the content-addressed store, hash-verified

620 private:
621 /// finish a column of scalar values (string or number)
622 Status FinishScalar(const std::shared_ptr<Array>& scalar_values, ScalarBuilder* builder,
623 std::shared_ptr<Array>* out) {
624 std::shared_ptr<Array> indices;
625 // TODO(bkietz) embed builder->values_length() in this output somehow
626 RETURN_NOT_OK(builder->Finish(&indices));
627 auto ty = dictionary(int32(), scalar_values->type());
628 *out = std::make_shared<DictionaryArray>(ty, indices, scalar_values);
629 return Status::OK();
630 }
631
632 template <Kind::type kind>
633 std::vector<RawArrayBuilder<kind>>& arena() {

Callers

nothing calls this directly

Calls 4

OKFunction · 0.70
dictionaryFunction · 0.50
FinishMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected