Class GroupFacetCollector.FacetEntry

  • Enclosing class:
    GroupFacetCollector

    public static class GroupFacetCollector.FacetEntry
    extends java.lang.Object
    Represents a facet entry with a value and a count.
    • Field Detail

      • count

        private final int count
    • Constructor Detail

      • FacetEntry

        public FacetEntry​(BytesRef value,
                          int count)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getValue

        public BytesRef getValue()
        Returns:
        The value of this facet entry
      • getCount

        public int getCount()
        Returns:
        The count (number of groups) of this facet entry.