public final class TableUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
allEmpty(Table table,
java.lang.String column)
Check if all elements in a column are empty.
|
static void |
appendRow(Table to,
Table from,
int row)
Append row from other table.
|
static int |
findRow(Table table,
java.lang.String compareColumn1,
java.lang.String compareValue1,
java.lang.String compareColumn2,
java.lang.String compareValue2)
Find row with required values for two columns.
|
static Table |
fromHistogram(Histogram histogram,
java.lang.String name) |
static java.util.ArrayList<java.lang.String> |
getColumnNotEmpty(Table table,
java.lang.String column)
Get elements of a column without null and whitespace-only elements.
|
static java.util.ArrayList<java.lang.String> |
getColumnUnique(Table table,
java.lang.String column) |
static double |
getMax(Table table,
java.lang.String column) |
static Statistics |
getStatistics(Table table,
java.lang.String column) |
static boolean |
isBoolValue(java.lang.String string) |
static boolean |
isIntValue(java.lang.String string) |
static boolean |
isNumberValue(java.lang.String string) |
static Table |
select(Table table,
java.lang.String compareColumn,
java.lang.String compareValue) |
static Table |
select(Table table,
java.lang.String compareColumn,
java.lang.String compareValue,
java.lang.String selectColumn) |
static Table |
select(Table table,
java.lang.String compareColumn,
java.lang.String compareValue,
java.lang.String selectColumn1,
java.lang.String selectColumn2) |
static Table |
selectIntRange(Table table,
java.lang.String compareColumn,
int min,
int max) |
public static boolean allEmpty(Table table, java.lang.String column) throws Table.InvalidLocation
table
- The table.column
- The column title.Table.InvalidLocation
public static void appendRow(Table to, Table from, int row)
to
- The table to append to.from
- The table to take the row from.row
- The index of the row in table from.public static int findRow(Table table, java.lang.String compareColumn1, java.lang.String compareValue1, java.lang.String compareColumn2, java.lang.String compareValue2) throws Table.InvalidLocation
table
- The table.compareColumn1
- The first column title.compareValue1
- The required value for the first column.compareColumn2
- The second column title.compareValue2
- The required value for the second column.Table.InvalidLocation
public static java.util.ArrayList<java.lang.String> getColumnNotEmpty(Table table, java.lang.String column) throws Table.InvalidLocation
Table.InvalidLocation
public static java.util.ArrayList<java.lang.String> getColumnUnique(Table table, java.lang.String column) throws Table.InvalidLocation
Table.InvalidLocation
public static double getMax(Table table, java.lang.String column) throws Table.InvalidLocation
Table.InvalidLocation
public static Statistics getStatistics(Table table, java.lang.String column) throws Table.InvalidLocation
Table.InvalidLocation
public static boolean isNumberValue(java.lang.String string)
public static boolean isBoolValue(java.lang.String string)
public static boolean isIntValue(java.lang.String string)
public static Table select(Table table, java.lang.String compareColumn, java.lang.String compareValue) throws Table.InvalidLocation
Table.InvalidLocation
public static Table select(Table table, java.lang.String compareColumn, java.lang.String compareValue, java.lang.String selectColumn) throws Table.InvalidLocation
Table.InvalidLocation
public static Table select(Table table, java.lang.String compareColumn, java.lang.String compareValue, java.lang.String selectColumn1, java.lang.String selectColumn2) throws Table.InvalidLocation
Table.InvalidLocation
public static Table selectIntRange(Table table, java.lang.String compareColumn, int min, int max) throws Table.InvalidLocation
Table.InvalidLocation