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

Method GetView

cpp/src/arrow/array/array_binary.h:69–73  ·  view source on GitHub ↗

\brief Get binary value as a string_view \param i the value index \return the view over the selected value

Source from the content-addressed store, hash-verified

67 /// \param i the value index
68 /// \return the view over the selected value
69 std::string_view GetView(int64_t i) const {
70 const offset_type pos = raw_value_offsets_[i];
71 return std::string_view(reinterpret_cast<const char*>(raw_data_ + pos),
72 raw_value_offsets_[i + 1] - pos);
73 }
74
75 std::optional<std::string_view> operator[](int64_t i) const {
76 return *IteratorType(*this, i);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected