public class QueryDataFrame<C> extends AbstractDataFrame<Group,String,Object> implements AggregateDataFrame<C>
AbstractDataFrame.ColumnSeries
Constructor and Description |
---|
QueryDataFrame(Query query,
boolean includeIndex) |
Modifier and Type | Method and Description |
---|---|
DataFrame<String,Group,?> |
append(Series<String,?> series) |
Iterable<String> |
columns()
Returns the column keys.
|
AggregateDataFrame<C> |
drillDown(C... columns)
Returns a new data frame that group the rows by values of the specified columns.
|
AggregateDataFrame<C> |
drillUp()
Returns a new data frame with the last group by level removed, i.e.
|
Series<Group,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.
|
Cuboid |
getCuboid()
Returns the cuboid used to aggregate the values.
|
Series<String,?> |
getRow(Group row)
Returns a series of all the values of a given row.
|
int |
getRowAddress(Group row)
Returns the absolute index for the specified row key.
|
Class |
getRowClass(Group 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<Group> |
getRowIndex()
Gets the index used to access the rows.
|
Group |
getRowKey(int index)
Returns the row key at the specified absolute index.
|
Object |
getValueAt(Group path,
String column)
Returns the value for the cell at the intersection of the
column key and row key. |
DataFrame |
join(Series series,
String[] columns) |
AggregateDataFrame<C> |
on(Cuboid... cuboids)
Combine the values from multiple cuboids into that data frame.
|
AggregateDataFrame<C> |
order(Aggregation... aggregations)
Returns a new data frame that change the order of the groups according to the
specified aggregation methods.
|
AggregateDataFrame<C> |
pivot(Aggregation aggregation)
Returns a new data frame that pivot the specified aggregation method into column values.
|
DataFrame<MultiKey,String,Object> |
reindexRows(String... columns)
Returns a new data frame reindexed using the values coming from the specified columns.
|
Iterable<Group> |
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
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 QueryDataFrame(Query query, boolean includeIndex)
public Cuboid getCuboid()
AggregateDataFrame
getCuboid
in interface AggregateDataFrame<C>
public AggregateDataFrame<C> drillDown(C... columns)
AggregateDataFrame
drillDown
in interface AggregateDataFrame<C>
columns
- the columnspublic AggregateDataFrame<C> drillUp()
AggregateDataFrame
drillUp
in interface AggregateDataFrame<C>
public AggregateDataFrame<C> order(Aggregation... aggregations)
AggregateDataFrame
order
in interface AggregateDataFrame<C>
aggregations
- the aggregation methodspublic AggregateDataFrame<C> pivot(Aggregation aggregation)
AggregateDataFrame
pivot
in interface AggregateDataFrame<C>
aggregation
- the aggregation to pivotpublic AggregateDataFrame<C> on(Cuboid... cuboids)
AggregateDataFrame
on
in interface AggregateDataFrame<C>
cuboids
- the cuboidspublic Class getRowClass(Group row)
DataFrame
getRowClass
in interface DataFrame<Group,String,Object>
row
- the key of the rowpublic Class getColumnClass(String column)
DataFrame
getColumnClass
in interface DataFrame<Group,String,Object>
column
- the key of the columnpublic Object getValueAt(Group path, String column)
DataFrame
column
key and row
key.getValueAt
in interface DataFrame<Group,String,Object>
path
- the row key whose value is to be queriedcolumn
- the column key whose value is to be queriedpublic Series<String,?> getRow(Group row)
DataFrame
public Series<Group,Object> getColumn(String column)
DataFrame
public Iterable<Group> rows()
DataFrame
public Iterable<String> columns()
DataFrame
public Group getRowKey(int index)
DataFrame
DataFrame.getRowAddress(Object)
.public String getColumnKey(int index)
DataFrame
DataFrame.getColumnAddress(Object)
.getColumnKey
in interface DataFrame<Group,String,Object>
getColumnKey
in class AbstractDataFrame<Group,String,Object>
index
- the indexpublic int getRowAddress(Group row)
DataFrame
DataFrame.getRowKey(int)
.getRowAddress
in interface DataFrame<Group,String,Object>
getRowAddress
in class AbstractDataFrame<Group,String,Object>
row
- the row keypublic int getColumnAddress(String column)
DataFrame
DataFrame.getColumnKey(int)
.getColumnAddress
in interface DataFrame<Group,String,Object>
getColumnAddress
in class AbstractDataFrame<Group,String,Object>
column
- the column keypublic int getRowCount()
DataFrame
getRowCount
in interface DataFrame<Group,String,Object>
getRowCount
in class AbstractDataFrame<Group,String,Object>
public int getColumnCount()
DataFrame
getColumnCount
in interface DataFrame<Group,String,Object>
getColumnCount
in class AbstractDataFrame<Group,String,Object>
public DataFrame<MultiKey,String,Object> reindexRows(String... columns)
DataFrame
reindexRows
in interface DataFrame<Group,String,Object>
reindexRows
in class AbstractDataFrame<Group,String,Object>
columns
- the columns to use for the label valuespublic Index<Group> getRowIndex()
DataFrame
getRowIndex
in interface DataFrame<Group,String,Object>
Copyright © 2014 Macrofocus GmbH. All Rights Reserved.