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

Method eval_at

cpp/gdb_arrow.py:530–539  ·  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

528 return self._data[index]
529
530 def eval_at(self, index, eval_format):
531 """
532 Run `eval_format` with the value at `index`.
533
534 For example, if `eval_format` is "{}.get()", this will evaluate
535 "{self[index]}.get()".
536 """
537 self._check_index(index)
538 return gdb.parse_and_eval(
539 eval_format.format(for_evaluation(self._data[index])))
540
541 def iter_eval(self, eval_format):
542 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