Iterating in String, Guava HashBasedTable

How do I get all the columns in a row in HashBasedTable

? I initialized it like this:

Table<String, String, Integer> table = HashBasedTable.create();

      

I want to sum all the values ​​associated with each row.

+3


source to share


1 answer


If you call table.row(r)

you get a map from columns to values, which you can call entrySet () or values ​​(), on.



+5


source







All Articles