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

Method UpdateRowLengths

cpp/src/arrow/csv/writer.cc:222–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 reject_values_with_quotes_(reject_values_with_quotes) {}
221
222 Status UpdateRowLengths(int64_t* row_lengths) override {
223 if (ARROW_PREDICT_TRUE(array_->type_id() == Type::STRING)) {
224 return UpdateRowLengths<StringArray>(row_lengths);
225 } else if (ARROW_PREDICT_TRUE(array_->type_id() == Type::LARGE_STRING)) {
226 return UpdateRowLengths<LargeStringArray>(row_lengths);
227 } else {
228 return Status::TypeError("The array must be StringArray or LargeStringArray.");
229 }
230 }
231
232 template <typename StringArrayType>
233 Status UpdateRowLengths(int64_t* row_lengths) {

Callers

nothing calls this directly

Calls 6

TypeErrorFunction · 0.50
OKFunction · 0.50
type_idMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected