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

Function MakeScalar

cpp/src/arrow/scalar.h:936–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934/// \brief Scalar factory for non-null scalars
935template <typename Value>
936Result<std::shared_ptr<Scalar>> MakeScalar(std::shared_ptr<DataType> type,
937 Value&& value) {
938 return MakeScalarImpl<Value&&>{type, std::forward<Value>(value), NULLPTR}.Finish();
939}
940
941/// \brief Type-inferring scalar factory for non-null scalars
942///

Callers 15

TestSessionFunction · 0.85
TEST_FFunction · 0.85
FinishMethod · 0.85
VisitMethod · 0.85
TYPED_TESTFunction · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
TEST_FFunction · 0.85
VisitMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

type_singletonFunction · 0.70
FinishMethod · 0.45

Tested by 15

TestSessionFunction · 0.68
TEST_FFunction · 0.68
TYPED_TESTFunction · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
AssertJSONScalarFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68