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

Function ReadRecordBatch

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

Source from the content-addressed store, hash-verified

976} // namespace
977
978Result<std::shared_ptr<RecordBatch>> ReadRecordBatch(
979 const Buffer& metadata, const std::shared_ptr<Schema>& schema,
980 const DictionaryMemo* dictionary_memo, const IpcReadOptions& options,
981 io::RandomAccessFile* file) {
982 std::shared_ptr<Schema> out_schema;
983 // Empty means do not use
984 std::vector<bool> inclusion_mask;
985 IpcReadContext context(const_cast<DictionaryMemo*>(dictionary_memo), options, false);
986 RETURN_NOT_OK(GetInclusionMaskAndOutSchema(schema, context.options.included_fields,
987 &inclusion_mask, &out_schema));
988 ARROW_ASSIGN_OR_RAISE(
989 auto batch_and_custom_metadata,
990 ReadRecordBatchInternal(metadata, schema, inclusion_mask, context, file));
991 return batch_and_custom_metadata.batch;
992}
993
994Result<std::shared_ptr<RecordBatch>> ReadRecordBatch(
995 const std::shared_ptr<Schema>& schema, const DictionaryMemo* dictionary_memo,

Callers 9

operator()Method · 0.70
DoStandardRoundTripMethod · 0.70
TEST_FFunction · 0.70
ReadRecordBatchMethod · 0.50
TESTFunction · 0.50

Calls 5

ReadContiguousPayloadFunction · 0.85
metadataMethod · 0.45
getMethod · 0.45
typeMethod · 0.45

Tested by 3

DoStandardRoundTripMethod · 0.56
TEST_FFunction · 0.56
TESTFunction · 0.40