Class TableUtils


  • public class TableUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TableUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <C,​V>
      com.google.common.collect.Table<Directional<java.lang.String>,​C,​V>
      sortTableByRowKeys​(com.google.common.collect.Table<Directional<java.lang.String>,​C,​V> table, java.util.List<java.lang.String> rowKeys)
      Given a table, sort the rows such that the row keys appear in the same order as the given list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableUtils

        public TableUtils()
    • Method Detail

      • sortTableByRowKeys

        public static <C,​V> com.google.common.collect.Table<Directional<java.lang.String>,​C,​V> sortTableByRowKeys​(com.google.common.collect.Table<Directional<java.lang.String>,​C,​V> table,
                                                                                                                                    java.util.List<java.lang.String> rowKeys)
        Given a table, sort the rows such that the row keys appear in the same order as the given list. Any additional rows should be appended after these in the same order that they appeared.
        Parameters:
        table - the table to sort
        rowKeys - list of row keys to match
        Returns:
        a sorted table