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

Function _MakeArray

cpp/src/arrow/compute/kernels/test_util_internal.h:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53template <typename Type, typename T>
54std::shared_ptr<Array> _MakeArray(const std::shared_ptr<DataType>& type,
55 const std::vector<T>& values,
56 const std::vector<bool>& is_valid) {
57 std::shared_ptr<Array> result;
58 if (is_valid.size() > 0) {
59 ArrayFromVector<Type, T>(type, is_valid, values, &result);
60 } else {
61 ArrayFromVector<Type, T>(type, values, &result);
62 }
63 return result;
64}
65
66inline std::string CompareOperatorToFunctionName(CompareOperator op) {
67 static std::string function_names[] = {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected