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

Function Array__Slice2

r/src/array.cpp:88–93  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

86
87// [[arrow::export]]
88std::shared_ptr<arrow::Array> Array__Slice2(const std::shared_ptr<arrow::Array>& array,
89 R_xlen_t offset, R_xlen_t length) {
90 arrow::r::validate_slice_offset(offset, array->length());
91 arrow::r::validate_slice_length(length, array->length() - offset);
92 return array->Slice(offset, length);
93}
94
95void arrow::r::validate_index(int64_t i, int64_t len) {
96 if (i == NA_INTEGER) {

Callers 1

_arrow_Array__Slice2Function · 0.85

Calls 2

lengthMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected