Skip to content

Commit f27eeba

Browse files
- MakeArray
1 parent 4977bb2 commit f27eeba

File tree

6 files changed

+9
-33
lines changed

6 files changed

+9
-33
lines changed

r/NAMESPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ S3method("==","arrow::DataType")
99
S3method("==","arrow::Field")
1010
S3method(length,"arrow::Array")
1111
S3method(print,"arrow-enum")
12+
export(DateUnit)
13+
export(StatusCode)
14+
export(TimeUnit)
15+
export(Type)
16+
export(array)
1217
export(boolean)
1318
export(date32)
1419
export(date64)
@@ -22,6 +27,7 @@ export(int64)
2227
export(int8)
2328
export(list_of)
2429
export(null)
30+
export(record_batch)
2531
export(schema)
2632
export(struct)
2733
export(table)

r/R/RcppExports.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ ArrayData_get_offset <- function(x) {
1717
.Call(`_arrow_ArrayData_get_offset`, x)
1818
}
1919

20-
Array_initialize <- function(data_) {
21-
.Call(`_arrow_Array_initialize`, data_)
22-
}
23-
2420
Array_IsNull <- function(x, i) {
2521
.Call(`_arrow_Array_IsNull`, x, i)
2622
}

r/R/array.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
#' @export
5353
`!=.arrow::Array` <- function(x, y) !x$Equals(y)
5454

55-
#' @export
56-
MakeArray <- function(data){
57-
assert_that(inherits(data, "arrow::ArrayData"))
58-
`arrow::Array`$new(Array_initialize(data))
59-
}
60-
6155
#' create an arrow::Array from an R vector
6256
#'
6357
#' @param \dots Vectors to coerce

r/man/DataType.Rd

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/src/RcppExports.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,6 @@ BEGIN_RCPP
5050
return rcpp_result_gen;
5151
END_RCPP
5252
}
53-
// Array_initialize
54-
std::shared_ptr<arrow::Array> Array_initialize(const std::shared_ptr<arrow::ArrayData>& data_);
55-
RcppExport SEXP _arrow_Array_initialize(SEXP data_SEXP) {
56-
BEGIN_RCPP
57-
Rcpp::RObject rcpp_result_gen;
58-
Rcpp::RNGScope rcpp_rngScope_gen;
59-
Rcpp::traits::input_parameter< const std::shared_ptr<arrow::ArrayData>& >::type data_(data_SEXP);
60-
rcpp_result_gen = Rcpp::wrap(Array_initialize(data_));
61-
return rcpp_result_gen;
62-
END_RCPP
63-
}
6453
// Array_IsNull
6554
bool Array_IsNull(const std::shared_ptr<arrow::Array>& x, int i);
6655
RcppExport SEXP _arrow_Array_IsNull(SEXP xSEXP, SEXP iSEXP) {
@@ -851,7 +840,6 @@ static const R_CallMethodDef CallEntries[] = {
851840
{"_arrow_ArrayData_get_length", (DL_FUNC) &_arrow_ArrayData_get_length, 1},
852841
{"_arrow_ArrayData_get_null_count", (DL_FUNC) &_arrow_ArrayData_get_null_count, 1},
853842
{"_arrow_ArrayData_get_offset", (DL_FUNC) &_arrow_ArrayData_get_offset, 1},
854-
{"_arrow_Array_initialize", (DL_FUNC) &_arrow_Array_initialize, 1},
855843
{"_arrow_Array_IsNull", (DL_FUNC) &_arrow_Array_IsNull, 2},
856844
{"_arrow_Array_IsValid", (DL_FUNC) &_arrow_Array_IsValid, 2},
857845
{"_arrow_Array_length", (DL_FUNC) &_arrow_Array_length, 1},

r/src/array.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ int ArrayData_get_offset(const std::shared_ptr<arrow::ArrayData>& x){
4040
return x->offset;
4141
}
4242

43-
// [[Rcpp::export]]
44-
std::shared_ptr<arrow::Array> Array_initialize(const std::shared_ptr<arrow::ArrayData>& data_){
45-
return MakeArray(data_);
46-
}
47-
4843
// [[Rcpp::export]]
4944
bool Array_IsNull(const std::shared_ptr<arrow::Array>& x, int i){
5045
return x->IsNull(i);

0 commit comments

Comments
 (0)