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

Method List

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

Source from the content-addressed store, hash-verified

933}
934
935std::shared_ptr<Array> RandomArrayGenerator::List(const Array& values, int64_t size,
936 double null_probability,
937 bool force_empty_nulls,
938 int64_t alignment,
939 MemoryPool* memory_pool) {
940 auto offsets = Offsets(size + 1, static_cast<int32_t>(values.offset()),
941 static_cast<int32_t>(values.offset() + values.length()),
942 null_probability, force_empty_nulls, alignment, memory_pool);
943 return *::arrow::ListArray::FromArrays(*offsets, values);
944}
945
946std::shared_ptr<Array> RandomArrayGenerator::ListView(const Array& values, int64_t length,
947 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