MCPcopy Create free account
hub / github.com/apache/arrow / operator[]

Method operator[]

cpp/src/parquet/encoder.cc:1588–1594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1586 const ByteArray* src;
1587
1588 std::string_view operator[](int i) const {
1589 if (ARROW_PREDICT_FALSE(src[i].len >= kMaxByteArraySize)) {
1590 throw ParquetException("Parquet cannot store strings with size 2GB or more, got: ",
1591 src[i].len);
1592 }
1593 return std::string_view{src[i]};
1594 }
1595
1596 uint32_t len(int i) const { return src[i].len; }
1597};

Callers

nothing calls this directly

Calls 1

ParquetExceptionFunction · 0.85

Tested by

no test coverage detected