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

Method Make

cpp/src/arrow/compute/row/grouper.cc:307–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307Result<std::unique_ptr<RowSegmenter>> RowSegmenter::Make(
308 const std::vector<TypeHolder>& key_types, bool nullable_keys, ExecContext* ctx) {
309 if (key_types.size() == 0) {
310 return NoKeysSegmenter::Make();
311 } else if (!nullable_keys && key_types.size() == 1) {
312 const DataType* type = key_types[0].type;
313 if (type != NULLPTR && is_fixed_width(*type)) {
314 return SimpleKeySegmenter::Make(key_types[0]);
315 }
316 }
317 return AnyKeysSegmenter::Make(key_types, ctx);
318}
319
320namespace {
321

Callers

nothing calls this directly

Calls 3

is_fixed_widthFunction · 0.85
MakeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected