public interface DataSet
Modifier and Type | Method and Description |
---|---|
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() |
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(ComparatorByCriteria comparator)
Sorts this data set.
|
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=NoneDataSet sort(ComparatorByCriteria comparator)
comparator
- Comparator used to compare elements.void formatXMLProperties(PrintWriter out, int indent) throws Exception
Exception
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.