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

Method ToArray

cpp/src/gandiva/selection_vector_impl.h:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template <typename C_TYPE, typename A_TYPE, SelectionVector::Mode mode>
95ArrayPtr SelectionVectorImpl<C_TYPE, A_TYPE, mode>::ToArray() const {
96 auto data_type = arrow::TypeTraits<A_TYPE>::type_singleton();
97 auto array_data = arrow::ArrayData::Make(data_type, num_slots_, {NULLPTR, buffer_});
98 return arrow::MakeArray(array_data);
99}
100
101using SelectionVectorInt16 =
102 SelectionVectorImpl<uint16_t, arrow::UInt16Type, SelectionVector::MODE_UINT16>;

Callers 6

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

MakeFunction · 0.70
type_singletonFunction · 0.50
MakeArrayFunction · 0.50

Tested by 6

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36