Package org.opennms.netmgt.flows.elastic
Class TableUtils
- java.lang.Object
-
- org.opennms.netmgt.flows.elastic.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.
-
-
-
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 sortrowKeys
- list of row keys to match- Returns:
- a sorted table
-
-