public interface Table extends java.util.List<Row>
This is the interface for the in memory table which stores a list of rows. Users should be able to call the filter method to find the rows that satisfy the conditions specified by users. And table expose the functions of columns to enable users calling the functions on column.
Modifier and Type | Method and Description |
---|---|
Column |
column(int idx)
Get a column by index.
|
Column |
column(java.lang.String col)
Get a column by name.
|
Table |
filter(java.lang.String header,
java.lang.Object data) |
TableLayout |
getLayout()
Get the layout of this table.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
Table filter(java.lang.String header, java.lang.Object data)
Column column(int idx)
Get a column by index.
idx
- The column index (starting from 0).java.lang.IllegalArgumentException
- if idx is out of bounds.Column column(java.lang.String col)
Get a column by name.
col
- The column name.java.lang.IllegalArgumentException
- if col is not a valid column.TableLayout getLayout()
Get the layout of this table.