Class LabelAndValue

java.lang.Object
org.apache.lucene.facet.LabelAndValue

public final class LabelAndValue extends Object
Single label and its value, usually contained in a FacetResult.
  • Field Details

    • label

      public final String label
      Facet's label.
    • value

      public final Number value
      Value associated with this label.
    • count

      public final int count
      Number of occurrences for this label.
  • Constructor Details

    • LabelAndValue

      public LabelAndValue(String label, Number value)
      Constructor with unspecified count, we assume the value is a count.
    • LabelAndValue

      public LabelAndValue(String label, Number value, int count)
      Constructor with value and count.
  • Method Details