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

Method ReadRecordBatch

cpp/src/arrow/ipc/reader.cc:2065–2075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2063}
2064
2065Result<std::shared_ptr<RecordBatch>> WholeIpcFileRecordBatchGenerator::ReadRecordBatch(
2066 RecordBatchFileReaderImpl* state, Message* message) {
2067 CHECK_HAS_BODY(*message);
2068 ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body()));
2069 IpcReadContext context(&state->dictionary_memo_, state->options_, state->swap_endian_);
2070 ARROW_ASSIGN_OR_RAISE(
2071 auto batch_with_metadata,
2072 ReadRecordBatchInternal(*message->metadata(), state->schema_,
2073 state->field_inclusion_mask_, context, reader.get()));
2074 return batch_with_metadata.batch;
2075}
2076
2077} // namespace
2078

Callers 11

ReadAsBatchMethod · 0.45
GetPutDataFunction · 0.45
ConvertToStreamFunction · 0.45
DoLargeRoundTripMethod · 0.45
read_write_test.ccFile · 0.45
ReadMethod · 0.45
RunMainFunction · 0.45

Calls

no outgoing calls

Tested by 2

ReadAsBatchMethod · 0.36
DoLargeRoundTripMethod · 0.36