|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.internal.datafeed.ResultSetWrapper
public final class ResultSetWrapper
Wraps an implementation specific host resultset into a chart specific resultset that may be subsequently bound to individual series associated with a chart instance.
Constructor Summary | |
---|---|
ResultSetWrapper(GroupingLookupHelper hmLookup,
java.util.List liResultSet,
GroupKey[] groupKeys)
The default constructor that allows creation of a resultset wrapper |
|
ResultSetWrapper(GroupingLookupHelper hmLookup,
java.util.List liResultSet,
GroupKey[] groupKeys,
int[] groupBreaks)
|
Method Summary | |
---|---|
void |
applyBaseSeriesSortingAndGrouping(SeriesDefinition sdBase,
java.lang.String[] aggregationExp,
java.lang.String[] saExpressionKeys)
Groups rows of data as specified in the grouping criteria for the series definition |
void |
applyValueSeriesGroupingNSorting(SeriesDefinition sdValue,
java.lang.String[] aggregationExp,
java.lang.String[] saExpressionKeys)
Apply value series grouping and sorting, it only do grouping/sorting, don't do aggregation, aggregation will be done in doing base series grouping/sorting. |
void |
applyWholeSeriesSortingNGrouping(SeriesDefinition sdBase,
SeriesDefinition sdValue,
java.lang.String[] aggregationExp,
java.lang.String[] saExpressionKeys)
Apply sorting and Grouping of chart. |
static int |
compareObjects(java.lang.Object a,
java.lang.Object b)
Compares two objects of the same data type |
static int |
compareObjects(java.lang.Object obja,
java.lang.Object objb,
SeriesGrouping sg)
Compares two objects of the same data type |
void |
generateGroupBreaks(SeriesDefinition sdValue)
Generate group breaks with current row data. |
int |
getColumnCount()
Returns a pre-computed column count associated with the resultset wrapper instance |
int |
getColumnDataType(int iColumnIndex)
Returns the data type of specified column. |
int |
getGroupCount()
Returns a pre-computed group count associated with the resultset wrapper instance |
java.lang.Object |
getGroupKey(int iGroupIndex,
int iColumnIndex)
Extracts the group's key value that remains unchanged for a given group |
java.lang.Object |
getGroupKey(int iGroupIndex,
java.lang.String sExpressionKey,
java.lang.String aggExp)
Extracts the group's key value that remains unchanged for a given group |
int |
getGroupRowCount(int iGroupIndex)
Returns the row count in specified group. |
java.lang.Object[] |
getMergedGroupingBaseValues(int iColumnIndex,
SortOption sorting)
Returns the values for given column and compute index arrays. |
int |
getRowCount()
Returns the number of rows of data associated with the resultset wrapper instance |
ResultSetDataSet |
getSubset(org.eclipse.emf.common.util.EList elExpressions,
java.lang.String aggExp)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iColumnIndex)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
org.eclipse.emf.common.util.EList elExpressionKeys,
java.lang.String aggExp)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
int iColumnIndex)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
java.lang.String[] sExpressionKeys,
java.lang.String aggExp)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
java.lang.String sExpressionKey,
java.lang.String aggExp)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(java.lang.String[] sExpressionKeys,
java.lang.String aggExp)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(java.lang.String sExpressionKey,
java.lang.String aggExp)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
java.util.Iterator |
iterator()
Returns the iterator of associated resultset. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetWrapper(GroupingLookupHelper hmLookup, java.util.List liResultSet, GroupKey[] groupKeys)
hmLookup
- The map of expressions associated with each column in the
resultsetliResultSet
- A list of rows that represent the actual resultset data
content. Each row contains an Object[]groupKeys
- An array of orthogonal grouping keys, if it's null or
zero-length, no orthogonal grouping used.public ResultSetWrapper(GroupingLookupHelper hmLookup, java.util.List liResultSet, GroupKey[] groupKeys, int[] groupBreaks)
hmLookup
- liResultSet
- groupKeys
- groupBreaks
- Method Detail |
---|
public void applyWholeSeriesSortingNGrouping(SeriesDefinition sdBase, SeriesDefinition sdValue, java.lang.String[] aggregationExp, java.lang.String[] saExpressionKeys) throws ChartException
sdBase
- base series definition.sdValue
- value series definition.aggregationExp
- saExpressionKeys
-
ChartException
public void applyValueSeriesGroupingNSorting(SeriesDefinition sdValue, java.lang.String[] aggregationExp, java.lang.String[] saExpressionKeys) throws ChartException
sdValue
- value series definition.aggregationExp
-
ChartException
public void generateGroupBreaks(SeriesDefinition sdValue)
sdValue
- the value series definition.public void applyBaseSeriesSortingAndGrouping(SeriesDefinition sdBase, java.lang.String[] aggregationExp, java.lang.String[] saExpressionKeys) throws ChartException
ChartException
public int getGroupCount()
public int getGroupRowCount(int iGroupIndex)
iGroupIndex
-
public int getColumnCount()
public int getRowCount()
public java.lang.Object getGroupKey(int iGroupIndex, java.lang.String sExpressionKey, java.lang.String aggExp)
iGroupIndex
- The group index for which the key is requestedsExpressionKey
- The expression column that holds the group key value
public java.lang.Object getGroupKey(int iGroupIndex, int iColumnIndex)
iGroupIndex
- The group index for which the key is requestediColumnIndex
- The column index from which the group key value is to be
extracted
public ResultSetDataSet getSubset(int iGroupIndex, java.lang.String sExpressionKey, java.lang.String aggExp)
iGroupIndex
- The group number for which a subset is requestedsExpressionKey
- A single expression column for which a subset is requested
public ResultSetDataSet getSubset(int iGroupIndex, org.eclipse.emf.common.util.EList elExpressionKeys, java.lang.String aggExp)
iGroupIndex
- The group number for which a subset is requestedelExpressionKeys
- The expression columns for which a subset is requested
public ResultSetDataSet getSubset(int iGroupIndex, java.lang.String[] sExpressionKeys, java.lang.String aggExp)
iGroupIndex
- The group number for which a subset is requestedsExpressionKeys
- The expression columns for which a subset is requested
public ResultSetDataSet getSubset(int iGroupIndex, int iColumnIndex)
iGroupIndex
- The group number for which a subset is requestediColumnIndex
- A single column (defined by the index) for which the subset is
requested
public ResultSetDataSet getSubset(org.eclipse.emf.common.util.EList elExpressions, java.lang.String aggExp) throws ChartException
elExpressions
- The expression columns for which a resultset subset is being
requested
ChartException
public ResultSetDataSet getSubset(java.lang.String sExpressionKey, java.lang.String aggExp)
sExpressionKey
- A single expression column for which a resultset subset is
being requested
public ResultSetDataSet getSubset(java.lang.String[] sExpressionKeys, java.lang.String aggExp) throws ChartException
sExpressionKeys
- The expression columns for which a resultset subset is being
requested
ChartException
public ResultSetDataSet getSubset(int iColumnIndex)
iColumnIndex
- A single column for which a resultset subset is being
requested
public java.lang.Object[] getMergedGroupingBaseValues(int iColumnIndex, SortOption sorting)
iColumnIndex
-
public int getColumnDataType(int iColumnIndex)
iColumnIndex
-
public java.util.Iterator iterator()
public static int compareObjects(java.lang.Object obja, java.lang.Object objb, SeriesGrouping sg)
a
- Object oneb
- Object two
public static int compareObjects(java.lang.Object a, java.lang.Object b)
a
- Object oneb
- Object two
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |