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

Method Map

cpp/src/arrow/testing/random.cc:955–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955std::shared_ptr<Array> RandomArrayGenerator::Map(const std::shared_ptr<Array>& keys,
956 const std::shared_ptr<Array>& items,
957 int64_t size, double null_probability,
958 bool force_empty_nulls,
959 int64_t alignment,
960 MemoryPool* memory_pool) {
961 DCHECK_EQ(keys->length(), items->length());
962 auto offsets = Offsets(size + 1, static_cast<int32_t>(keys->offset()),
963 static_cast<int32_t>(keys->offset() + keys->length()),
964 null_probability, force_empty_nulls, alignment, memory_pool);
965 return *::arrow::MapArray::FromArrays(offsets, keys, items);
966}
967
968std::shared_ptr<Array> RandomArrayGenerator::RunEndEncoded(
969 std::shared_ptr<DataType> value_type, int64_t logical_size, double null_probability,

Callers 6

RegisterLogMethod · 0.45
FactoryForSchemeMethod · 0.45
DefaultsMethod · 0.45
MaybeAcceptMethod · 0.45
TESTFunction · 0.45
InstanceMethod · 0.45

Calls 3

FromArraysFunction · 0.85
lengthMethod · 0.45
offsetMethod · 0.45

Tested by 1

TESTFunction · 0.36