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

Function _arrow_RecordBatch__AddColumn

r/src/arrowExports.cpp:4806–4814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4804// recordbatch.cpp
4805std::shared_ptr<arrow::RecordBatch> RecordBatch__AddColumn(const std::shared_ptr<arrow::RecordBatch>& batch, int i, const std::shared_ptr<arrow::Field>& field, const std::shared_ptr<arrow::Array>& column);
4806extern "C" SEXP _arrow_RecordBatch__AddColumn(SEXP batch_sexp, SEXP i_sexp, SEXP field_sexp, SEXP column_sexp){
4807BEGIN_CPP11
4808 arrow::r::Input<const std::shared_ptr<arrow::RecordBatch>&>::type batch(batch_sexp);
4809 arrow::r::Input<int>::type i(i_sexp);
4810 arrow::r::Input<const std::shared_ptr<arrow::Field>&>::type field(field_sexp);
4811 arrow::r::Input<const std::shared_ptr<arrow::Array>&>::type column(column_sexp);
4812 return cpp11::as_sexp(RecordBatch__AddColumn(batch, i, field, column));
4813END_CPP11
4814}
4815// recordbatch.cpp
4816std::shared_ptr<arrow::RecordBatch> RecordBatch__SetColumn(const std::shared_ptr<arrow::RecordBatch>& batch, int i, const std::shared_ptr<arrow::Field>& field, const std::shared_ptr<arrow::Array>& column);
4817extern "C" SEXP _arrow_RecordBatch__SetColumn(SEXP batch_sexp, SEXP i_sexp, SEXP field_sexp, SEXP column_sexp){

Callers

nothing calls this directly

Calls 2

as_sexpFunction · 0.85
RecordBatch__AddColumnFunction · 0.85

Tested by

no test coverage detected