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

Function RepeatRowTableUntil

cpp/src/arrow/compute/row/compare_test.cc:198–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198Result<RowTableImpl> RepeatRowTableUntil(const RowTableImpl& seed, int64_t num_rows) {
199 RowTableImpl row_table;
200
201 RETURN_NOT_OK(row_table.Init(default_memory_pool(), seed.metadata()));
202 // Append the seed row table repeatedly to grow the row table to big enough.
203 while (row_table.length() < num_rows) {
204 RETURN_NOT_OK(row_table.AppendSelectionFrom(seed,
205 static_cast<uint32_t>(seed.length()),
206 /*source_row_ids=*/NULLPTR));
207 }
208
209 return row_table;
210}
211
212void AssertCompareColumnsToRowsAllMatch(const std::vector<KeyColumnArray>& columns,
213 const RowTableImpl& row_table,

Callers

nothing calls this directly

Calls 5

default_memory_poolFunction · 0.85
AppendSelectionFromMethod · 0.80
InitMethod · 0.45
metadataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected