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

Method eval_at

cpp/gdb_arrow.py:532–541  ·  view source on GitHub ↗

Run `eval_format` with the value at `index`. For example, if `eval_format` is "{}.get()", this will evaluate "{self[index]}.get()".

(self, index, eval_format)

Source from the content-addressed store, hash-verified

530 return self._data[index]
531
532 def eval_at(self, index, eval_format):
533 """
534 Run `eval_format` with the value at `index`.
535
536 For example, if `eval_format` is "{}.get()", this will evaluate
537 "{self[index]}.get()".
538 """
539 self._check_index(index)
540 return gdb.parse_and_eval(
541 eval_format.format(for_evaluation(self._data[index])))
542
543 def iter_eval(self, eval_format):
544 data_eval = for_evaluation(self._data)

Callers

nothing calls this directly

Calls 3

_check_indexMethod · 0.95
for_evaluationFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected