Class UniqueByGroup


  • public class UniqueByGroup
    extends Object

    Holds the count of unique values for a metadata class 'on' grouped by the values in metadata class 'by'.

    Since:
    15.8
    • Field Detail

      • by

        private final String by

        The metadata class counts are grouped by.

        Since:
        15.8
      • on

        private final String on

        The metadata class being counted.

      • groupAndCounts

        private final Map<String,​Double> groupAndCounts

        Holds the count of distinct values in a group.

        The key is the group, which a single value from the metadata class by. The value is the count of unique values in the group for the metadata class on.

        Since:
        15.8
    • Constructor Detail

      • UniqueByGroup

        public UniqueByGroup​(String by,
                             String on)
    • Method Detail

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getBy

        public String getBy()

        The metadata class counts are grouped by.

        Since:
        15.8
      • getOn

        public String getOn()

        The metadata class being counted.

      • getGroupAndCounts

        public Map<String,​Double> getGroupAndCounts()

        Holds the count of distinct values in a group.

        The key is the group, which a single value from the metadata class by. The value is the count of unique values in the group for the metadata class on.

        Since:
        15.8