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

Method IndexError

cpp/src/arrow/type.cc:1788–1807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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