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

Function ipc___ReadRecordBatch__InputStream__Schema

r/src/recordbatch.cpp:184–192  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

182
183// [[arrow::export]]
184std::shared_ptr<arrow::RecordBatch> ipc___ReadRecordBatch__InputStream__Schema(
185 const std::shared_ptr<arrow::io::InputStream>& stream,
186 const std::shared_ptr<arrow::Schema>& schema) {
187 // TODO: promote to function arg
188 arrow::ipc::DictionaryMemo memo;
189 StopIfNotOk(memo.fields().AddSchemaFields(*schema));
190 return ValueOrStop(arrow::ipc::ReadRecordBatch(
191 schema, &memo, arrow::ipc::IpcReadOptions::Defaults(), stream.get()));
192}
193
194namespace arrow {
195namespace r {

Calls 7

StopIfNotOkFunction · 0.85
ValueOrStopFunction · 0.85
ReadRecordBatchFunction · 0.50
DefaultsFunction · 0.50
AddSchemaFieldsMethod · 0.45
fieldsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected