Class TwoDimensionalStatistics
java.lang.Object
com.atlassian.jira.search.aggregation.twodimensional.TwoDimensionalStatistics
Holder for the statistics of a two dimensional aggregation, containing the total hit count, X and Y totals, irrelevant
counts and the mapping of a row to its column values (cells).
- Since:
- 10.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThe number of hits (documents) where both x and y were irrelevant for the document (not visible).longThe total number of hits (documents) that matched the search request.Retrieve the mapping of a row (Y axis) to its column values (X axis) values.longThe number of hits (documents) where the x axis was irrelevant for the document (not visible).Retrieves the list of X value totalsgetXValueTotals(Comparator<Statistic> comparator) Retrieve a sorted list using the providedComparatorof all the X axis values with their total counts.longThe number of hits (documents) where the y axis was irrelevant for the document (not visible).Retrieves the list of Y value totalsgetYValueTotals(Comparator<Statistic> comparator) Retrieve a sorted list using the providedComparatorof all the Y axis values with their total counts.booleanTest if there are any irrelevant data for both x and y axis.booleanTest if there are any irrelevant data for the x-axis.booleanTest if there are any irrelevant data for the y axis.
-
Constructor Details
-
TwoDimensionalStatistics
-
-
Method Details
-
getRowToColumnValuesMap
Retrieve the mapping of a row (Y axis) to its column values (X axis) values.- Returns:
- a map of row to column values
-
getXValueTotals
Retrieve a sorted list using the providedComparatorof all the X axis values with their total counts.- Parameters:
comparator- to sort the list- Returns:
- the sorted list of X axis values with their total counts
-
getXValueTotals
Retrieves the list of X value totals- Returns:
- the X Axis totals
-
getYValueTotals
Retrieve a sorted list using the providedComparatorof all the Y axis values with their total counts.- Parameters:
comparator- to sort the list- Returns:
- the sorted list of Y axis values with their total counts
-
getYValueTotals
Retrieves the list of Y value totals- Returns:
- the Y Axis totals
-
getHitCount
public long getHitCount()The total number of hits (documents) that matched the search request.- Returns:
- the total number of hits
-
getBothIrrelevant
public long getBothIrrelevant()The number of hits (documents) where both x and y were irrelevant for the document (not visible).- Returns:
- the number of hits where both x and y were irrelevant
-
hasIrrelevantXData
public boolean hasIrrelevantXData()Test if there are any irrelevant data for the x-axis.- Returns:
- true if there are irrelevant data for the x-axis
-
hasIrrelevantYData
public boolean hasIrrelevantYData()Test if there are any irrelevant data for the y axis.- Returns:
- true if there are irrelevant data for the y axis
-
hasBothIrrelevantData
public boolean hasBothIrrelevantData()Test if there are any irrelevant data for both x and y axis.- Returns:
- true if there are irrelevant data for both x and y axis
-
getxIrrelevant
public long getxIrrelevant()The number of hits (documents) where the x axis was irrelevant for the document (not visible).- Returns:
- the number of hits where the x axis was irrelevant
-
getYIrrelevant
public long getYIrrelevant()The number of hits (documents) where the y axis was irrelevant for the document (not visible).- Returns:
- the number of hits where the y axis was irrelevant
-