What is the best way to access a specific element in a table?

What if you want to access a single element in a table, rather than a whole row or whole column?

The .getColumn and .getDirect are two methods to look at for accessing single values. For example:

table.getColumn("ColName").getDirect()[row #] //indexing starts at 0

Note that getDirect coalesces an array for the whole column. So, if a large column is needed, we recommend applying appropriate filters first.


Last Updated: 16 February 2021 18:06 -04:00 UTC    Deephaven v.1.20200928  (See other versions)

Deephaven Documentation     Copyright 2016-2020  Deephaven Data Labs, LLC     All Rights Reserved