R
- the type of row keysV
- the type of column keyspublic class IndexedDataFrame<R,V> extends AbstractDataFrame<R,Object,V>
Modifier and Type | Class and Description |
---|---|
class |
IndexedDataFrame.ColumnSeries<K> |
Constructor and Description |
---|
IndexedDataFrame(Index<R> rowIndex,
Index columnIndex,
Series<R,V>[] series) |
IndexedDataFrame(Series<R,V>... series) |
Modifier and Type | Method and Description |
---|---|
DataFrame<Object,R,?> |
append(Series<Object,?> series) |
Iterable<Object> |
columns()
Returns the column keys.
|
Series<R,V> |
getColumn(Object column)
Returns a series of all the values of a given column.
|
int |
getColumnAddress(Object column)
Returns the absolute index for the specified column key.
|
Class |
getColumnClass(Object column)
Returns the most specific superclass for all cell values in a column
|
int |
getColumnCount()
Returns the number of columns contained by this data frame.
|
Index<Object> |
getColumnIndex()
Gets the index used to access the columns.
|
Object |
getColumnKey(int index)
Returns the column key at the specified absolute index.
|
Series<Object,?> |
getRow(Object row)
Returns a series of all the values of a given row.
|
int |
getRowAddress(R row)
Returns the absolute index for the specified row key.
|
Class |
getRowClass(R row)
Returns the most specific superclass for all cell values in a row.
|
int |
getRowCount()
Returns the number of rows contained by the this data frame.
|
Index<R> |
getRowIndex()
Gets the index used to access the rows.
|
R |
getRowKey(int index)
Returns the row key at the specified absolute index.
|
V |
getValueAt(R row,
Object column)
Returns the value for the cell at the intersection of the
column key and row key. |
DataFrame |
join(Series series,
Object[] columns) |
DataFrame<MultiKey,Object,V> |
reindexRows(Object... columns)
Returns a new data frame reindexed using the values coming from the specified columns.
|
Iterable<R> |
rows()
Returns the row keys.
|
addDataFrameListener, addWeakDataFrameListener, aggregate, benchmark, filter, getColumnName, getCount, getCountDistinct, getCube, getMax, getMean, getMin, getStdDev, getSum, getVariance, getVariance, notifyDataFrameChanged, orderRows, print, print, removeDataFrameListener, removeDataFrameListeners
public Index<Object> getColumnIndex()
DataFrame
public Index<R> getRowIndex()
DataFrame
public Class getRowClass(R row)
DataFrame
row
- the key of the rowpublic Class getColumnClass(Object column)
DataFrame
column
- the key of the columnpublic Series<Object,?> getRow(Object row)
DataFrame
row
- the row keypublic Series<R,V> getColumn(Object column)
DataFrame
public V getValueAt(R row, Object column)
DataFrame
column
key and row
key.row
- the row key whose value is to be queriedcolumn
- the column key whose value is to be queriedpublic Iterable<Object> columns()
DataFrame
public R getRowKey(int index)
DataFrame
DataFrame.getRowAddress(Object)
.public Object getColumnKey(int index)
DataFrame
DataFrame.getColumnAddress(Object)
.getColumnKey
in interface DataFrame<R,Object,V>
getColumnKey
in class AbstractDataFrame<R,Object,V>
index
- the indexpublic int getRowAddress(R row)
DataFrame
DataFrame.getRowKey(int)
.getRowAddress
in interface DataFrame<R,Object,V>
getRowAddress
in class AbstractDataFrame<R,Object,V>
row
- the row keypublic int getColumnAddress(Object column)
DataFrame
DataFrame.getColumnKey(int)
.getColumnAddress
in interface DataFrame<R,Object,V>
getColumnAddress
in class AbstractDataFrame<R,Object,V>
column
- the column keypublic int getRowCount()
DataFrame
getRowCount
in interface DataFrame<R,Object,V>
getRowCount
in class AbstractDataFrame<R,Object,V>
public int getColumnCount()
DataFrame
getColumnCount
in interface DataFrame<R,Object,V>
getColumnCount
in class AbstractDataFrame<R,Object,V>
public DataFrame<MultiKey,Object,V> reindexRows(Object... columns)
DataFrame
reindexRows
in interface DataFrame<R,Object,V>
reindexRows
in class AbstractDataFrame<R,Object,V>
columns
- the columns to use for the label valuesCopyright © 2014 Macrofocus GmbH. All Rights Reserved.