public class TwoDimensionalStatsMap extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ASC |
static String |
DESC |
static String |
NATURAL_ORDER |
static String |
TOTAL_ORDER |
Constructor and Description |
---|
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
StatisticsMapper yAxisMapper) |
TwoDimensionalStatsMap(StatisticsMapper xAxisMapper,
StatisticsMapper yAxisMapper,
StatisticGatherer statisticGatherer) |
Modifier and Type | Method and Description |
---|---|
void |
adjustMapForIrrelevantValues(JiraBytesRef[] xAxisValues,
boolean xIrrelevant,
JiraBytesRef[] yAxisValues,
boolean yIrrelevant,
int incrementValue)
Used to keep track of the irrelevant counts for the issues returned for this 2D stats map.
|
void |
adjustMapForValues(JiraBytesRef[] xAxisValues,
JiraBytesRef[] 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() |
public static final String TOTAL_ORDER
public static final String NATURAL_ORDER
public static final String DESC
public static final String ASC
public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)
public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)
public Collection getXAxis()
public Collection getYAxis()
public Collection getYAxis(String orderBy, String direction)
public Collection getYAxis(Comparator comp)
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)
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.
yAxis
- identifies the column who's total is requested, null is valid.public int getYAxisIrrelevantTotal(Object 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.
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(JiraBytesRef[] xAxisValues, boolean xIrrelevant, JiraBytesRef[] 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(JiraBytesRef[] xAxisValues, JiraBytesRef[] yAxisValues, int value)
Copyright © 2002-2021 Atlassian. All Rights Reserved.