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

Function ArraysCanFitInteger

r/src/array_to_vector.cpp:1185–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183};
1184
1185bool ArraysCanFitInteger(ArrayVector arrays) {
1186 bool all_can_fit = true;
1187 auto i32 = arrow::int32();
1188 for (const auto& array : arrays) {
1189 if (all_can_fit) {
1190 all_can_fit = arrow::IntegersCanFit(*array->data(), *i32).ok();
1191 }
1192 }
1193 return all_can_fit;
1194}
1195
1196bool GetBoolOption(const std::string& name, bool default_) {
1197 SEXP getOption = Rf_install("getOption");

Callers 1

MakeMethod · 0.85

Calls 3

IntegersCanFitFunction · 0.85
okMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected