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

Method Finish

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

Source from the content-addressed store, hash-verified

105 virtual std::shared_ptr<ArrayBuilder> builder() = 0;
106
107 virtual Status Finish(std::shared_ptr<Array>* out) {
108 auto builder = this->builder();
109 if (builder->length() == 0) {
110 // Make sure the builder was initialized
111 RETURN_NOT_OK(builder->Resize(1));
112 }
113 return builder->Finish(out);
114 }
115
116 protected:
117 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