Constructor and Description |
---|
TableModelDataFrame(TableModel tableModel) |
Modifier and Type | Method and Description |
---|---|
DataFrame<String,Integer,?> |
append(Series<String,?> series) |
Iterable<String> |
columns()
Returns the column keys.
|
Series<Integer,Object> |
getColumn(String column)
Returns a series of all the values of a given column.
|
int |
getColumnAddress(String column)
Returns the absolute index for the specified column key.
|
Class |
getColumnClass(String 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<String> |
getColumnIndex()
Gets the index used to access the columns.
|
String |
getColumnKey(int index)
Returns the column key at the specified absolute index.
|
Series<String,?> |
getRow(Integer row)
Returns a series of all the values of a given row.
|
int |
getRowAddress(Integer row)
Returns the absolute index for the specified row key.
|
Class |
getRowClass(Integer 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<Integer> |
getRowIndex()
Gets the index used to access the rows.
|
Integer |
getRowKey(int index)
Returns the row key at the specified absolute index.
|
TableModel |
getTableModel() |
Object |
getValueAt(Integer row,
String column)
Returns the value for the cell at the intersection of the
column key and row key. |
DataFrame |
join(Series series,
String[] columns) |
DataFrame<MultiKey,String,Object> |
reindexRows(String... columns)
Returns a new data frame reindexed using the values coming from the specified columns.
|
Iterable<Integer> |
rows()
Returns the row keys.
|
void |
setValueAt(Integer row,
String column,
Object value)
Sets the value for the cell at the intersection of the
column key and row key. |
addDataFrameListener, addWeakDataFrameListener, aggregate, benchmark, filter, getColumnName, getCount, getCountDistinct, getCube, getMax, getMean, getMin, getStdDev, getSum, getVariance, getVariance, notifyDataFrameChanged, orderRows, print, print, removeDataFrameListener, removeDataFrameListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDataFrameListener, addWeakDataFrameListener, aggregate, benchmark, filter, getColumnName, getCount, getCountDistinct, getMax, getMean, getMin, getStdDev, getSum, getVariance, getVariance, orderRows, print, print, removeDataFrameListener, removeDataFrameListeners
public TableModelDataFrame(TableModel tableModel)
public TableModel getTableModel()
public Class getRowClass(Integer row)
DataFrame
getRowClass
in interface DataFrame<Integer,String,Object>
row
- the key of the rowpublic Class getColumnClass(String column)
DataFrame
getColumnClass
in interface DataFrame<Integer,String,Object>
column
- the key of the columnpublic Object getValueAt(Integer row, String column)
DataFrame
column
key and row
key.getValueAt
in interface DataFrame<Integer,String,Object>
row
- the row key whose value is to be queriedcolumn
- the column key whose value is to be queriedpublic void setValueAt(Integer row, String column, Object value)
MutableDataFrame
column
key and row
key.setValueAt
in interface MutableDataFrame<Integer,String,Object>
row
- the row key whose value is to be changedcolumn
- the column key whose value is to be changedvalue
- the new value at the specified cellpublic Series<String,?> getRow(Integer row)
DataFrame
public Series<Integer,Object> getColumn(String column)
DataFrame
public Iterable<Integer> rows()
DataFrame
public Iterable<String> columns()
DataFrame
public Integer getRowKey(int index)
DataFrame
DataFrame.getRowAddress(Object)
.public String getColumnKey(int index)
DataFrame
DataFrame.getColumnAddress(Object)
.getColumnKey
in interface DataFrame<Integer,String,Object>
getColumnKey
in class AbstractDataFrame<Integer,String,Object>
index
- the indexpublic int getRowAddress(Integer row)
DataFrame
DataFrame.getRowKey(int)
.getRowAddress
in interface DataFrame<Integer,String,Object>
getRowAddress
in class AbstractDataFrame<Integer,String,Object>
row
- the row keypublic int getColumnAddress(String column)
DataFrame
DataFrame.getColumnKey(int)
.getColumnAddress
in interface DataFrame<Integer,String,Object>
getColumnAddress
in class AbstractDataFrame<Integer,String,Object>
column
- the column keypublic int getRowCount()
DataFrame
getRowCount
in interface DataFrame<Integer,String,Object>
getRowCount
in class AbstractDataFrame<Integer,String,Object>
public int getColumnCount()
DataFrame
getColumnCount
in interface DataFrame<Integer,String,Object>
getColumnCount
in class AbstractDataFrame<Integer,String,Object>
public DataFrame<MultiKey,String,Object> reindexRows(String... columns)
DataFrame
reindexRows
in interface DataFrame<Integer,String,Object>
reindexRows
in class AbstractDataFrame<Integer,String,Object>
columns
- the columns to use for the label valuespublic Index<Integer> getRowIndex()
DataFrame
getRowIndex
in interface DataFrame<Integer,String,Object>
Copyright © 2014 Macrofocus GmbH. All Rights Reserved.