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

Method InitPartsupp

cpp/src/arrow/acero/tpch_node.cc:1084–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082 }
1083
1084 Status InitPartsupp(size_t thread_index) {
1085 ThreadLocalData& tld = thread_local_data_[thread_index];
1086 tld.generated_partsupp.reset();
1087 int64_t num_batches = PartsuppBatchesToGenerate(thread_index);
1088 tld.partsupp.resize(num_batches);
1089 for (std::vector<Datum>& batch : tld.partsupp) {
1090 batch.resize(PARTSUPP::kNumCols);
1091 std::fill(batch.begin(), batch.end(), Datum());
1092 }
1093 return Status::OK();
1094 }
1095
1096 Status AllocatePartSuppBatch(size_t thread_index, size_t ibatch, int column) {
1097 ThreadLocalData& tld = thread_local_data_[thread_index];

Callers

nothing calls this directly

Calls 6

resizeMethod · 0.80
DatumClass · 0.50
OKFunction · 0.50
resetMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected