|
Dashboard Builder Data Provider API 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSet
A data set represents a matrix of data with a fixed number of properties and a fixed number of rows.
| Method Summary | |
|---|---|
DataSet |
filter(DataFilter filter)
Filter the dataset. |
void |
formatXMLProperties(PrintWriter out,
int indent)
Returns an XML string with the definition of the data set properties. |
DataProvider |
getDataProvider()
DataProvider |
DataProperty[] |
getProperties()
|
Set<String> |
getPropertiesReferenced()
Get all the properties this data set references to (directly or indirectly). |
DataProperty |
getPropertyByColumn(int column)
Get a property by its column index (starting by 0) |
DataProperty |
getPropertyById(String id)
Get a property by its column index. |
int |
getPropertyColumn(DataProperty property)
Get a property column position in the dataset. |
List |
getPropertyValues(DataProperty p)
Get all values encountered for the specified column. |
Map |
getRowAsMap(int row)
Get all the values for a given row. |
Object[] |
getRowAt(int row)
Get all the values for a given row. |
int |
getRowCount()
Get the number of rows in the dataset. |
Object |
getValueAt(int row,
int column)
Get the value at a given cell. |
List |
getValuesAt(int column)
Get all the values at a given column. |
DataSet |
groupBy(DataProperty groupByProperty,
int[] columns,
String[] functionCodes)
Groups this data set. |
DataSet |
groupBy(DataProperty groupByProperty,
int[] columns,
String[] functionCodes,
int sortIndex,
int sortOrder)
Groups this data set. |
void |
parseXMLProperties(NodeList nodes)
It updates the dataset properties with the definition coming from the specified XML. |
void |
setDataProvider(DataProvider dataProvider)
|
int |
sizeOf()
Return the estimated memory (in bytes) this data set is consuming. |
DataSet |
sort(Comparator comparator)
Sorts this data set. |
| Method Detail |
|---|
DataProvider getDataProvider()
void setDataProvider(DataProvider dataProvider)
DataProperty[] getProperties()
List getPropertyValues(DataProperty p)
DataProperty getPropertyByColumn(int column)
DataProperty getPropertyById(String id)
int getPropertyColumn(DataProperty property)
int getRowCount()
Object getValueAt(int row,
int column)
row - The cell row (the first row is 0).column - The cell column (the first column is 0).List getValuesAt(int column)
column - The cell column (the first column is 0).Object[] getRowAt(int row)
row - The row position (the first row is 0).
Map getRowAsMap(int row)
row - The row position (the first row is 0).
int sizeOf()
DataSet filter(DataFilter filter)
throws Exception
Exception
DataSet groupBy(DataProperty groupByProperty,
int[] columns,
String[] functionCodes)
groupByProperty - The property to group for.columns - An array of the columns to be included in the resulting data set.functionCodes - The scalar function codes to apply to each property of the resulting data set.
DataSet groupBy(DataProperty groupByProperty,
int[] columns,
String[] functionCodes,
int sortIndex,
int sortOrder)
groupByProperty - The property to group for.columns - An array of the columns to be included in the resulting data set.functionCodes - The scalar function codes to apply to each property of the resulting data set.sortIndex - The resulting data set column to order the result for (starting at 0 and lower than the columns array length).sortOrder - 1=Ascending, -1=Descending, 0=None
DataSet sort(Comparator comparator)
comparator - Used to compare rows (Object[] instances).
void formatXMLProperties(PrintWriter out,
int indent)
throws Exception
Exception
void parseXMLProperties(NodeList nodes)
throws Exception
Exception
Set<String> getPropertiesReferenced()
throws Exception
Exception
|
Dashboard Builder Data Provider API 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||