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

Function AssertFixedSizeBinary

cpp/src/parquet/encoder.cc:294–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void AssertFixedSizeBinary(const ::arrow::Array& values, int type_length) {
295 if (!::arrow::is_fixed_size_binary(values.type_id())) {
296 throw ParquetException("Only FixedSizeBinaryArray and subclasses supported");
297 }
298 if (checked_cast<const ::arrow::FixedSizeBinaryType&>(*values.type()).byte_width() !=
299 type_length) {
300 throw ParquetException("Size mismatch: " + values.type()->ToString() +
301 " should have been " + std::to_string(type_length) + " wide");
302 }
303}
304
305template <>
306inline void PlainEncoder<FLBAType>::Put(const ::arrow::Array& values) {

Callers 3

PutMethod · 0.85
PutDictionaryMethod · 0.85
PutMethod · 0.85

Calls 7

ParquetExceptionFunction · 0.85
to_stringFunction · 0.85
is_fixed_size_binaryFunction · 0.50
type_idMethod · 0.45
byte_widthMethod · 0.45
typeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected