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

Method ArrayOf

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

Source from the content-addressed store, hash-verified

1038}
1039
1040std::shared_ptr<Array> RandomArrayGenerator::ArrayOf(std::shared_ptr<DataType> type,
1041 int64_t size,
1042 double null_probability,
1043 int64_t alignment,
1044 MemoryPool* memory_pool) {
1045 auto metadata = key_value_metadata({"null_probability"}, {ToChars(null_probability)});
1046 auto field = ::arrow::field("", std::move(type), std::move(metadata));
1047 return ArrayOf(*field, size, alignment, memory_pool);
1048}
1049
1050std::shared_ptr<Array> RandomArrayGenerator::ArrayOf(const Field& field, int64_t length,
1051 int64_t alignment,

Callers 15

MakeExample1Method · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
MakeExample2Method · 0.45
table_test.ccFile · 0.45
BatchToTensorSimpleFunction · 0.45
TableToTensorSimpleFunction · 0.45
MakeMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45

Calls 15

key_value_metadataFunction · 0.85
ToCharsFunction · 0.85
StringClass · 0.85
month_day_nano_intervalFunction · 0.85
NullBitmapClass · 0.85
FromArraysFunction · 0.85
nullableMethod · 0.80
ValueOrDieMethod · 0.80
index_typeMethod · 0.80
WithTypeMethod · 0.80
storage_typeMethod · 0.80
fieldFunction · 0.50

Tested by 15

MakeExample1Method · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
MakeExample2Method · 0.36
MakeMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
MakeBatchesAndReaderMethod · 0.36
TYPED_TESTFunction · 0.36
TESTFunction · 0.36