public class Projection extends Relation
Constructor | Description |
---|---|
Projection(Table table,
String[] columnNames) |
Modifier and Type | Method | Description |
---|---|---|
Relation |
addColumns(Column... cols) |
|
void |
clear() |
Clears all the dat in the relation, leaving the structure intact
|
Column |
column(int columnIndex) |
Returns the column at columnIndex (0-based)
|
int |
columnCount() |
Returns the number of columns in the relation
|
int |
columnIndex(Column col) |
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
|
String |
name() |
Returns the name of this relation
|
Relation |
removeColumns(Column... columns) |
Removes the given columns from the receiver
|
int |
rowCount() |
Returns the number of rows in the relation
|
Relation |
setName(String name) |
|
Table |
where(Filter filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asMatrix, booleanColumn, booleanColumn, booleanColumns, categoricalColumn, categoricalColumn, column, columnIndex, columnsOfType, columnTypes, colWidths, containsColumn, dateColumn, dateColumn, dateColumns, dateTimeColumn, dateTimeColumn, dateTimeColumns, getUnformatted, isEmpty, nCol, nCol, numberColumn, numberColumn, numberColumns, print, print, printAll, removeColumns, removeColumns, shape, stringColumn, stringColumn, stringColumns, structure, summary, timeColumn, timeColumn, timeColumns, toString
public Relation addColumns(Column... cols)
addColumns
in class Relation
public Relation removeColumns(Column... columns)
Relation
removeColumns
in class Relation
public Column column(int columnIndex)
Relation
public int columnCount()
Relation
columnCount
in class Relation
public int rowCount()
Relation
public List<Column> columns()
Relation
public int columnIndex(Column col)
Relation
columnIndex
in class Relation
public String get(int r, int c)
Relation
public String name()
Relation
public void clear()
Relation
public List<String> columnNames()
columnNames
in class Relation
Copyright © 2018. All rights reserved.