Class GroupFacetCollector.FacetEntry
- java.lang.Object
-
- org.apache.lucene.search.grouping.GroupFacetCollector.FacetEntry
-
- Enclosing class:
- GroupFacetCollector
public static class GroupFacetCollector.FacetEntry extends java.lang.Object
Represents a facet entry with a value and a count.
-
-
Constructor Summary
Constructors Constructor Description FacetEntry(BytesRef value, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getCount()
BytesRef
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
value
private final BytesRef value
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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.
-
-