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

Method SetInitialCapacity

cpp/src/arrow/table_builder.cc:91–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89Result<std::shared_ptr<RecordBatch>> RecordBatchBuilder::Flush() { return Flush(true); }
90
91void RecordBatchBuilder::SetInitialCapacity(int64_t capacity) {
92 ARROW_CHECK_GT(capacity, 0) << "Initial capacity must be positive";
93 initial_capacity_ = capacity;
94}
95
96Status RecordBatchBuilder::CreateBuilders() {
97 field_builders_.resize(this->num_fields());

Callers 2

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64