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

Method IndexError

cpp/src/arrow/type.cc:1791–1810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1789struct FieldPathGetImpl {
1790 template <typename Selector>
1791 static Status IndexError(const FieldPath* path, int out_of_range_depth,
1792 const Selector& selector) {
1793 std::stringstream ss;
1794 ss << "index out of range. ";
1795
1796 ss << "indices=[ ";
1797 int depth = 0;
1798 for (int i : path->indices()) {
1799 if (depth++ != out_of_range_depth) {
1800 ss << i << " ";
1801 } else {
1802 ss << ">" << i << "< ";
1803 }
1804 }
1805 ss << "] ";
1806
1807 selector.Summarize(&ss);
1808
1809 return Status::IndexError(ss.str());
1810 }
1811
1812 template <typename Selector, typename T = typename Selector::ArrowType>
1813 static Result<std::shared_ptr<T>> Get(const FieldPath* path, Selector selector,

Callers

nothing calls this directly

Calls 4

IndexErrorFunction · 0.85
indicesMethod · 0.80
SummarizeMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected