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

Function TransferHalfFloat

cpp/src/parquet/arrow/reader_internal.cc:847–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847Status TransferHalfFloat(RecordReader* reader, MemoryPool* pool,
848 const std::shared_ptr<Field>& field, Datum* out) {
849 static const auto binary_type = ::arrow::fixed_size_binary(2);
850 // Read as a FixedSizeBinaryArray - then, view as a HalfFloatArray
851 std::shared_ptr<ChunkedArray> chunked_array;
852 RETURN_NOT_OK(
853 TransferBinary(reader, pool, field->WithType(binary_type), &chunked_array));
854 ARROW_ASSIGN_OR_RAISE(*out, chunked_array->View(field->type()));
855 return Status::OK();
856}
857
858} // namespace
859

Callers 1

TransferColumnDataFunction · 0.85

Calls 7

fixed_size_binaryFunction · 0.85
TransferBinaryFunction · 0.85
WithTypeMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
OKFunction · 0.50
ViewMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected