public class Table extends ArrayList<Row>
modCount| Modifier and Type | Method and Description |
|---|---|
void |
addRow(List row) |
void |
addRow(Object... row) |
Table |
apply(PipeFunction... functions) |
void |
clear() |
static Table |
cloneTableStructure(Table table)
Create a new table with the same column names as provided table
|
Object |
get(int row,
int column) |
Object |
get(int row,
String columnName) |
List |
getColumn(int column) |
List |
getColumn(String columnName) |
int |
getColumnCount() |
List<String> |
getColumnNames() |
Row |
getRow(int row) |
int |
getRowCount() |
void |
setColumnNames(String... columnNames) |
Table |
sort()
Sort the rows of the table according to a default comparator
|
Table |
sort(Comparator<Row> comparator)
Sort the rows of the table according to provided comparator
|
Table |
unique()
Filter out duplicates according to a default comparator
|
Table |
unique(Comparator<Row> comparator)
Filter out duplicates according to the provided comparator
|
add, add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic Table()
public Table(String... columnNames)
public Table apply(PipeFunction... functions)
public void addRow(List row)
public void addRow(Object... row)
public void setColumnNames(String... columnNames)
public int getRowCount()
public int getColumnCount()
public Object get(int row, int column)
public Row getRow(int row)
public List getColumn(int column)
public Table unique()
public Table unique(Comparator<Row> comparator)
comparator - a row comparatorpublic Table sort()
public Table sort(Comparator<Row> comparator)
comparator - a row comparatorpublic static Table cloneTableStructure(Table table)
table - a tableCopyright © 2010-2014. All Rights Reserved.