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

Method ReadRecordBatch

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

Source from the content-addressed store, hash-verified

2037}
2038
2039Result<std::shared_ptr<RecordBatch>> WholeIpcFileRecordBatchGenerator::ReadRecordBatch(
2040 RecordBatchFileReaderImpl* state, Message* message) {
2041 CHECK_HAS_BODY(*message);
2042 ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body()));
2043 IpcReadContext context(&state->dictionary_memo_, state->options_, state->swap_endian_);
2044 ARROW_ASSIGN_OR_RAISE(
2045 auto batch_with_metadata,
2046 ReadRecordBatchInternal(*message->metadata(), state->schema_,
2047 state->field_inclusion_mask_, context, reader.get()));
2048 return batch_with_metadata.batch;
2049}
2050
2051} // namespace
2052

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