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

Method Map

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

Source from the content-addressed store, hash-verified

962}
963
964std::shared_ptr<Array> RandomArrayGenerator::Map(const std::shared_ptr<Array>& keys,
965 const std::shared_ptr<Array>& items,
966 int64_t size, double null_probability,
967 bool force_empty_nulls,
968 int64_t alignment,
969 MemoryPool* memory_pool) {
970 DCHECK_EQ(keys->length(), items->length());
971 auto offsets = Offsets(size + 1, static_cast<int32_t>(keys->offset()),
972 static_cast<int32_t>(keys->offset() + keys->length()),
973 null_probability, force_empty_nulls, alignment, memory_pool);
974 return *::arrow::MapArray::FromArrays(offsets, keys, items);
975}
976
977std::shared_ptr<Array> RandomArrayGenerator::RunEndEncoded(
978 std::shared_ptr<DataType> value_type, int64_t logical_size, double null_probability) {

Callers 5

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

Calls 3

FromArraysFunction · 0.85
lengthMethod · 0.45
offsetMethod · 0.45

Tested by 1

TESTFunction · 0.36