Class TwoDimensionalStatsMap

java.lang.Object
com.atlassian.jira.lucene.internal.issue.statistics.TwoDimensionalStatsMap

@Deprecated(since="10.4", forRemoval=true) public class TwoDimensionalStatsMap extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    adjustMapForIrrelevantValues(JiraBytesRef[] xAxisValues, boolean xIrrelevant, JiraBytesRef[] yAxisValues, boolean yIrrelevant, int incrementValue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    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)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the value of all unique issues identified within this StatsMap.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the number of irrelevant issues for the X axis contained in the column identified by yAxis.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the value of unique issues contained in the column identified by xAxis.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getYAxis(String orderBy, String direction)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the number of irrelevant issues for the Y axis contained in the column identified by xAxis.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the value of unique issues contained in the column identified by xAxis.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TOTAL_ORDER

      public static final String TOTAL_ORDER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • NATURAL_ORDER

      public static final String NATURAL_ORDER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DESC

      public static final String DESC
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ASC

      public static final String ASC
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • TwoDimensionalStatsMap

      public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, StatisticGatherer statisticGatherer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TwoDimensionalStatsMap

      public TwoDimensionalStatsMap(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getXAxis

      public Collection getXAxis()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getYAxis

      public Collection getYAxis()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getYAxis

      public Collection getYAxis(String orderBy, String direction)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getYAxis

      public Collection getYAxis(Comparator comp)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCoordinate

      public int getCoordinate(Object xAxis, Object yAxis)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getyAxisMapper

      public StatisticsMapper getyAxisMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getxAxisMapper

      public StatisticsMapper getxAxisMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getXAxisUniqueTotal

      public int getXAxisUniqueTotal(Object xAxis)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • getYAxisUniqueTotal

      public int getYAxisUniqueTotal(Object yAxis)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • getXAxisIrrelevantTotal

      public int getXAxisIrrelevantTotal(Object yAxis)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • getYAxisIrrelevantTotal

      public int getYAxisIrrelevantTotal(Object xAxis)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • getBothIrrelevant

      public int getBothIrrelevant()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • hasIrrelevantXData

      public boolean hasIrrelevantXData()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      true if the results contain irrelevant data for the X axis stat type.
    • hasIrrelevantYData

      public boolean hasIrrelevantYData()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      true if the results contain irrelevant data for the Y axis stat type.
    • getUniqueTotal

      public long getUniqueTotal()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the value of all unique issues identified within this StatsMap.
      Returns:
      number of unique issues identified within this StatsMap.
    • adjustMapForIrrelevantValues

      public void adjustMapForIrrelevantValues(JiraBytesRef[] xAxisValues, boolean xIrrelevant, JiraBytesRef[] yAxisValues, boolean yIrrelevant, int incrementValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • adjustMapForValues

      public void adjustMapForValues(JiraBytesRef[] xAxisValues, JiraBytesRef[] yAxisValues, int value)
      Deprecated, for removal: This API element is subject to removal in a future version.