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

Method List

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

Source from the content-addressed store, hash-verified

924}
925
926std::shared_ptr<Array> RandomArrayGenerator::List(const Array& values, int64_t size,
927 double null_probability,
928 bool force_empty_nulls,
929 int64_t alignment,
930 MemoryPool* memory_pool) {
931 auto offsets = Offsets(size + 1, static_cast<int32_t>(values.offset()),
932 static_cast<int32_t>(values.offset() + values.length()),
933 null_probability, force_empty_nulls, alignment, memory_pool);
934 return *::arrow::ListArray::FromArrays(*offsets, values);
935}
936
937std::shared_ptr<Array> RandomArrayGenerator::ListView(const Array& values, int64_t length,
938 double null_probability,

Callers 4

TEST_FFunction · 0.45
TESTFunction · 0.45
BinaryJoinFunction · 0.45

Calls 3

FromArraysFunction · 0.85
offsetMethod · 0.45
lengthMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36