public class TableSlice extends Relation implements it.unimi.dsi.fastutil.ints.IntIterable
A TableSlice is only good until the structure of the underlying table changes.
| Constructor | Description |
|---|---|
TableSlice(Table table,
Selection rowSelection) |
Returns a new View constructed from the given table, containing only the rows represented by the bitmap
|
| Modifier and Type | Method | Description |
|---|---|---|
TableSlice |
addColumns(Column... column) |
|
Table |
asTable() |
|
void |
clear() |
Clears all rows from this View, leaving the structure in place
|
Column |
column(int columnIndex) |
Returns the column at columnIndex (0-based)
|
Column |
column(String columnName) |
Returns the column with the given columnName, ignoring case
|
int |
columnCount() |
Returns the number of columns in the relation
|
int |
columnIndex(Column column) |
Returns the index of the given column
|
List<String> |
columnNames() |
|
List<Column> |
columns() |
Returns a list of all the columns in the relation
|
Table |
first(int nRows) |
|
String |
get(int r,
int c) |
Returns a String representing the value found at column index c and row index r
|
it.unimi.dsi.fastutil.ints.IntIterator |
iterator() |
Returns a 0 based int iterator for use with, for example, get().
|
String |
name() |
Returns the name of this relation
|
double |
reduce(String numberColumnName,
AggregateFunction function) |
Returns the result of applying the given function to the specified column
|
TableSlice |
removeColumns(Column... columns) |
Removes the given columns from the receiver
|
int |
rowCount() |
Returns the number of rows in the relation
|
TableSlice |
setName(String name) |
spliteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitas, booleanColumn, booleanColumn, booleanColumns, categoricalColumn, categoricalColumn, columnIndex, columns, columns, columnsOfType, columnTypes, colWidths, containsColumn, dateColumn, dateColumn, dateColumns, dateTimeColumn, dateTimeColumn, dateTimeColumns, doubleColumns, getUnformatted, isEmpty, nCol, nCol, numberColumn, numberColumn, numberColumns, print, print, printAll, removeColumns, removeColumns, shape, stringColumn, stringColumn, stringColumns, structure, summary, timeColumn, timeColumn, timeColumns, toStringpublic Column column(int columnIndex)
Relationpublic Column column(String columnName)
Relationpublic int columnCount()
RelationcolumnCount in class Relationpublic int rowCount()
Relationpublic List<Column> columns()
Relationpublic int columnIndex(Column column)
RelationcolumnIndex in class Relationpublic String get(int r, int c)
Relationpublic String name()
Relationpublic void clear()
public List<String> columnNames()
columnNames in class Relationpublic TableSlice addColumns(Column... column)
addColumns in class Relationpublic TableSlice removeColumns(Column... columns)
RelationremoveColumns in class Relationpublic TableSlice setName(String name)
public Table asTable()
public double reduce(String numberColumnName, AggregateFunction function)
numberColumnName - The name of a numeric column in this tablefunction - A numeric reduce functionIllegalArgumentException - if numberColumnName doesn't name a numeric column in this tablepublic it.unimi.dsi.fastutil.ints.IntIterator iterator()
Copyright © 2018. All rights reserved.