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

Method PresizedValueDescWriter

cpp/src/arrow/csv/parser.cc:214–216  ·  view source on GitHub ↗

The number of offsets being written will be `1 + num_rows * num_cols`, however we allow for one extraneous write in case of excessive columns, hence `2 + num_rows * num_cols` (see explanation in PushValue below).

Source from the content-addressed store, hash-verified

212 // however we allow for one extraneous write in case of excessive columns,
213 // hence `2 + num_rows * num_cols` (see explanation in PushValue below).
214 PresizedValueDescWriter(MemoryPool* pool, int32_t num_rows, int32_t num_cols)
215 : ValueDescWriter(
216 pool, /*values_capacity=*/2 + static_cast<int64_t>(num_rows) * num_cols) {}
217
218 void PushValue(ParsedValueDesc v) {
219 DCHECK_LT(values_size_, values_capacity_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected