Awesome… that is Word i can say first, for Google Guava Table.

Guava table is a part of library guava. A collection that associates an ordered pair of keys, called a row key and a column key, with a single value. A table may be sparse, with only a small fraction of row key / column key pairs possessing a corresponding value.

The mappings corresponding to a given row key may be viewed as a Map whose keys are the columns. The reverse is also available, associating a column with a row key / value map. Note that, in some implementations, data access by column key may have fewer supported operations or worse performance than data access by row key.

Check this Gist, Better see an example 😀

Result

Visit My Repository for full code
showimage

Reference

  1. Google Guava ArrayTable
  2. Avaldes Google Guava