|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.statistics.TwoDimensionalStatsMap
public class TwoDimensionalStatsMap
Field Summary | |
---|---|
static String |
ASC
|
static String |
DESC
|
static String |
NATURAL_ORDER
|
static String |
TOTAL_ORDER
|
Constructor Summary | |
---|---|
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
StatisticsMapper yAxisMapper)
|
|
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
StatisticsMapper yAxisMapper,
StatisticGatherer statisticGatherer)
|
Method Summary | |
---|---|
void |
adjustMapForIrrelevantValues(Collection xAxisValues,
boolean xIrrelevant,
Collection yAxisValues,
boolean yIrrelevant,
int incrementValue)
Used to keep track of the irrelevant counts for the issues returned for this 2D stats map. |
void |
adjustMapForValues(Collection xAxisValues,
Collection yAxisValues,
int value)
|
int |
getBothIrrelevant()
If hasIrrelevantXData() is true and hasIrrelevantYData() is true then we need to know the
total where both axis are irrelevant. |
int |
getCoordinate(Object xAxis,
Object yAxis)
|
long |
getUniqueTotal()
Returns the value of all unique issues identified within this StatsMap. |
Collection |
getXAxis()
|
int |
getXAxisIrrelevantTotal(Object yAxis)
Returns the number of irrelevant issues for the X axis contained in the column identified by yAxis. |
StatisticsMapper |
getxAxisMapper()
|
int |
getXAxisUniqueTotal(Object xAxis)
Returns the value of unique issues contained in the column identified by xAxis. |
Collection |
getYAxis()
|
Collection |
getYAxis(Comparator comp)
|
Collection |
getYAxis(String orderBy,
String direction)
|
int |
getYAxisIrrelevantTotal(Object xAxis)
Returns the number of irrelevant issues for the Y axis contained in the column identified by xAxis. |
StatisticsMapper |
getyAxisMapper()
|
int |
getYAxisUniqueTotal(Object yAxis)
Returns the value of unique issues contained in the column identified by xAxis. |
boolean |
hasIrrelevantXData()
|
boolean |
hasIrrelevantYData()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TOTAL_ORDER
public static final String NATURAL_ORDER
public static final String DESC
public static final String ASC
Constructor Detail |
---|
public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)
public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)
Method Detail |
---|
public Collection getXAxis()
public Collection getYAxis()
public Collection getYAxis(String orderBy, String direction)
public Collection getYAxis(Comparator comp)
public int getCoordinate(Object xAxis, Object yAxis)
public StatisticsMapper getyAxisMapper()
public StatisticsMapper getxAxisMapper()
public int getXAxisUniqueTotal(Object xAxis)
xAxis
- identifies the column who's total is requested, null is valid.
public int getYAxisUniqueTotal(Object yAxis)
yAxis
- identifies the row who's total is requested, null is valid.
public int getXAxisIrrelevantTotal(Object yAxis)
yAxis
- identifies the column who's total is requested, null is valid.
public int getYAxisIrrelevantTotal(Object xAxis)
xAxis
- identifies the column who's total is requested, null is valid.
public int getBothIrrelevant()
hasIrrelevantXData()
is true and hasIrrelevantYData()
is true then we need to know the
total where both axis are irrelevant. This method will return that count.
public boolean hasIrrelevantXData()
public boolean hasIrrelevantYData()
public long getUniqueTotal()
public void adjustMapForIrrelevantValues(Collection xAxisValues, boolean xIrrelevant, Collection yAxisValues, boolean yIrrelevant, int incrementValue)
xAxisValues
- null or the relevant X values for an issuexIrrelevant
- true if the X field is not visible for the issue we are recording stats for, false otherwiseyAxisValues
- null or the relevant Y values for an issueyIrrelevant
- true if the Y field is not visible for the issue we are recording stats for, false otherwiseincrementValue
- the value to increment the counts by, seems to always be 1, perhaps someone once thought we would do otherwise.public void adjustMapForValues(Collection xAxisValues, Collection yAxisValues, int value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |