Row
- the type of row keys maintained used to query this data frame.Column
- the type of column keys maintained used to query this data frame.V
- the type of valuespublic interface DataFrame<Row,Column,V>
Modifier and Type | Method and Description |
---|---|
void |
addDataFrameListener(DataFrameListener<Row,Column> listener)
Add a listener to the list that's notified each time a change to the data frame occurs.
|
void |
addWeakDataFrameListener(DataFrameListener<Row,Column> listener)
Add a listener to the list that's notified each time a change to the data frame occurs.
|
AggregateDataFrame<Column> |
aggregate(Aggregation... aggregation)
Returns a new data frame suitable for data aggregation.
|
DataFrame<Column,Row,?> |
append(Series<Column,?> series) |
void |
benchmark()
Perform some repetitive operation to estimate the performance of the data frame.
|
Iterable<Column> |
columns()
Returns the column keys.
|
FilterDataFrame<Row,Column,V> |
filter(<any> filter)
Returns a new data frame those rows are filtered by the specified filter model.
|
Series<Row,V> |
getColumn(Column column)
Returns a series of all the values of a given column.
|
int |
getColumnAddress(Column column)
Returns the absolute index for the specified column key.
|
Class |
getColumnClass(Column 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<Column> |
getColumnIndex()
Gets the index used to access the columns.
|
Column |
getColumnKey(int index)
Returns the column key at the specified absolute index.
|
String |
getColumnName(Column column)
Returns the name of the column.
|
CountAggregation |
getCount(Column column)
Returns the aggregation method for counting the number of values.
|
CountDistinctAggregation |
getCountDistinct(Column column)
Returns the aggregation method for counting the number of distinct values.
|
MaxAggregation |
getMax(Column column)
Returns the aggregation method for finding the maximum value.
|
MeanAggregation |
getMean(Column column)
Returns the aggregation method for computing the mean value.
|
MinAggregation |
getMin(Column column)
Returns the aggregation method for finding the minimum value.
|
Series<Column,?> |
getRow(Row row)
Returns a series of all the values of a given row.
|
int |
getRowAddress(Row row)
Returns the absolute index for the specified row key.
|
Class |
getRowClass(Row 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<Row> |
getRowIndex()
Gets the index used to access the rows.
|
Row |
getRowKey(int index)
Returns the row key at the specified absolute index.
|
StdDevAggregation |
getStdDev(Column column)
Returns the aggregation method for computing the standard deviation.
|
SumAggregation |
getSum(Column column)
Returns the aggregation method for computing the sum.
|
V |
getValueAt(Row row,
Column column)
Returns the value for the cell at the intersection of the
column key and row key. |
VarianceAggregation |
getVariance(Column column)
Returns the aggregation method for computing the variance.
|
VarianceAggregation |
getVariance(Column column,
Column population)
Returns the aggregation method for computing the variance by factoring in the specified population.
|
DataFrame |
join(Series series,
Column[] columns) |
DataFrame<Row,Column,V> |
orderRows(Column... columns)
Returns a new data frame reordered using the values coming from the specified columns.
|
void |
print()
Display the content of the data frame to the console.
|
void |
print(PrintStream out,
String caption,
boolean html)
Display the content of the data frame to the specified output.
|
DataFrame<MultiKey,Column,V> |
reindexRows(Column... columns)
Returns a new data frame reindexed using the values coming from the specified columns.
|
void |
removeDataFrameListener(DataFrameListener<Row,Column> listener)
Remove a listener to the list that's notified each time a change to the data frame occurs.
|
void |
removeDataFrameListeners()
Remove all listeners to the list that's notified each time a change to the data frame occurs.
|
Iterable<Row> |
rows()
Returns the row keys.
|
String getColumnName(Column column)
column
- the key of the columnClass getRowClass(Row row)
row
- the key of the rowClass getColumnClass(Column column)
column
- the key of the columnV getValueAt(Row row, Column column)
column
key and row
key.row
- the row key whose value is to be queriedcolumn
- the column key whose value is to be queriedSeries<Column,?> getRow(Row row)
row
- the row keySeries<Row,V> getColumn(Column column)
column
- the row keyRow getRowKey(int index)
getRowAddress(Object)
.index
- the indexColumn getColumnKey(int index)
getColumnAddress(Object)
.index
- the indexint getRowAddress(Row row)
getRowKey(int)
.row
- the row keyint getColumnAddress(Column column)
getColumnKey(int)
.column
- the column keyint getRowCount()
int getColumnCount()
DataFrame<MultiKey,Column,V> reindexRows(Column... columns)
columns
- the columns to use for the label valuesIndex<Column> getColumnIndex()
DataFrame<Row,Column,V> orderRows(Column... columns)
columns
- the columns to use for sortingFilterDataFrame<Row,Column,V> filter(<any> filter)
filter
- the filter modelAggregateDataFrame<Column> aggregate(Aggregation... aggregation)
AggregateDataFrame
.aggregation
- the aggregation methods to use as columnsSumAggregation getSum(Column column)
column
- the column keyCountAggregation getCount(Column column)
column
- the column keyMinAggregation getMin(Column column)
column
- the column keyMaxAggregation getMax(Column column)
column
- the column keyMeanAggregation getMean(Column column)
column
- the column keyVarianceAggregation getVariance(Column column)
column
- the column keyVarianceAggregation getVariance(Column column, Column population)
column
- the column keypopulation
- the key of the column for the populationStdDevAggregation getStdDev(Column column)
column
- the column keyCountDistinctAggregation getCountDistinct(Column column)
column
- the column keyvoid print()
void print(PrintStream out, String caption, boolean html)
out
- the outputcaption
- the titlehtml
- false for text output, true for HTML formattingvoid benchmark()
void addDataFrameListener(DataFrameListener<Row,Column> listener)
listener
- the DataFrameListenervoid addWeakDataFrameListener(DataFrameListener<Row,Column> listener)
listener
- the DataFrameListenervoid removeDataFrameListener(DataFrameListener<Row,Column> listener)
listener
- the DataFrameListenervoid removeDataFrameListeners()
Copyright © 2014 Macrofocus GmbH. All Rights Reserved.