public class

TwoDimensionalStatsMap

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.TwoDimensionalStatsMap

Summary

Constants
String ASC
String DESC
String NATURAL_ORDER
String TOTAL_ORDER
Public Constructors
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)
Public Methods
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.
int getXAxisUniqueTotal(Object xAxis)
Returns the value of unique issues contained in the column identified by xAxis.
Collection getYAxis()
Collection getYAxis(String orderBy, String direction)
Collection getYAxis(Comparator comp)
int getYAxisIrrelevantTotal(Object xAxis)
Returns the number of irrelevant issues for the Y axis contained in the column identified by xAxis.
int getYAxisUniqueTotal(Object yAxis)
Returns the value of unique issues contained in the column identified by xAxis.
StatisticsMapper getxAxisMapper()
StatisticsMapper getyAxisMapper()
boolean hasIrrelevantXData()
boolean hasIrrelevantYData()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ASC

Constant Value: "asc"

public static final String DESC

Constant Value: "desc"

public static final String NATURAL_ORDER

Constant Value: "natural"

public static final String TOTAL_ORDER

Constant Value: "total"

Public Constructors

public TwoDimensionalStatsMap (StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)

public TwoDimensionalStatsMap (StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)

Public Methods

public 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.

Parameters
xAxisValues null or the relevant X values for an issue
xIrrelevant true if the X field is not visible for the issue we are recording stats for, false otherwise
yAxisValues null or the relevant Y values for an issue
yIrrelevant true if the Y field is not visible for the issue we are recording stats for, false otherwise
incrementValue 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)

public int getBothIrrelevant ()

If 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.

Returns
  • the number of issues that have both X and Y irrelevant data.

public int getCoordinate (Object xAxis, Object yAxis)

public long getUniqueTotal ()

Returns the value of all unique issues identified within this StatsMap.

Returns
  • number of unique issues identified within this StatsMap.

public Collection getXAxis ()

public int getXAxisIrrelevantTotal (Object yAxis)

Returns the number of irrelevant issues for the X axis contained in the column identified by yAxis.

The X axis values is implied by the method, it is the Irrelevant ones, the Y axis identifies which irrelevant X count we are after.

Parameters
yAxis identifies the column who's total is requested, null is valid.
Returns
  • number of number of irrelevant issues for the identified column/row.

public int getXAxisUniqueTotal (Object xAxis)

Returns the value of unique issues contained in the column identified by xAxis.

Parameters
xAxis identifies the column who's total is requested, null is valid.
Returns
  • number of unique issues for the identified column.

public Collection getYAxis ()

public Collection getYAxis (String orderBy, String direction)

public Collection getYAxis (Comparator comp)

public int getYAxisIrrelevantTotal (Object xAxis)

Returns the number of irrelevant issues for the Y axis contained in the column identified by xAxis.

The Y axis values is implied by the method, it is the Irrelevant ones, the X axis identifies which irrelevant Y count we are after.

Parameters
xAxis identifies the column who's total is requested, null is valid.
Returns
  • number of number of irrelevant issues for the identified column/row.

public int getYAxisUniqueTotal (Object yAxis)

Returns the value of unique issues contained in the column identified by xAxis.

Parameters
yAxis identifies the row who's total is requested, null is valid.
Returns
  • number of unique issues for the identified row.

public StatisticsMapper getxAxisMapper ()

public StatisticsMapper getyAxisMapper ()

public boolean hasIrrelevantXData ()

Returns
  • true if the results contain irrelevant data for the X axis stat type.

public boolean hasIrrelevantYData ()

Returns
  • true if the results contain irrelevant data for the Y axis stat type.