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

Method Finish

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

Source from the content-addressed store, hash-verified

82 virtual std::shared_ptr<ArrayBuilder> builder() = 0;
83
84 virtual Status Finish(std::shared_ptr<Array>* out) {
85 auto builder = this->builder();
86 if (builder->length() == 0) {
87 // Make sure the builder was initialized
88 RETURN_NOT_OK(builder->Resize(1));
89 }
90 return builder->Finish(out);
91 }
92
93 protected:
94 std::shared_ptr<DataType> type_;

Callers 2

ArrayFromJSONStringFunction · 0.45
ScalarFromJSONStringFunction · 0.45

Calls 3

builderMethod · 0.45
lengthMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected